win32com ChartObject pythonwin vs idle

Roger Upole rupole at hotmail.com
Thu Jul 31 23:22:27 EDT 2008


"sterling" <sterlingsomers at gmail.com> wrote in message 
news:670b57b7-d48e-44c0-abd0-b6772d23688d at 79g2000hsk.googlegroups.com...
> I'm curious as to why the difference between IDLE and pythonWin when
> using win32com.
> opening an excel file, i've attempted to grab the chart information
> out of the file.
>
> commands like co = ChartObjects(1)  works in pythonWin but doesn't
> work in IDLE.
>
> however, on both co = chartobjects(1) works just fine.
>
> The same goes other things like SeriesCollection()/
> seriescollection(1),seriescollection(2)..., Close()/close
>
> Is there any way to fix it such that IDLE works with ChartObject()
> too?  I'd really like to be able to use ChartObject().Count() (there
> doesn't seem to be an equivalent chartobject.count)
>
> Thanks.

This was probably due to a conflict with the way IDLE sets the locale.
Bug report here:
http://sourceforge.net/tracker/index.php?func=detail&aid=2006053&group_id=78018&atid=551954

This is fixed in build 212, just released today.

          Roger






More information about the Python-list mailing list