Re: win32com ChartObject pythonwin vs idle



sterling wrote:
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.

I can't speak for IDLE vs PythonWin but in general
case-sensitivity of win32com stuff is related to
early vs late Dispatch. If you've explicitly generated
proxy modules for the Excel objects (via makepy,
EnsureDispatch or whatever) then those are Python
modules with case-sensitivity. If you're using dynamic
dispatch then Python is simply passing your attribute
name along to COM, which isn't case-sensitive, so either
case will work.

Not sure why IDLE vs PythonWin should make a difference
here, but maybe the above explanation sheds some light...

TJG
.



Relevant Pages

  • Re: win32com ChartObject pythonwin vs idle
    ... opening an excel file, i've attempted to grab the chart information ... I can't speak for IDLE vs PythonWin but in general ... Not sure why IDLE vs PythonWin should make a difference ... return filter(lambda char: char in valid_identifier_chars, ...
    (comp.lang.python)
  • Re: win32com ChartObject pythonwin vs idle
    ... opening an excel file, i've attempted to grab the chart information ... commands like co = ChartObjectsworks in pythonWin but doesn't ... Is there any way to fix it such that IDLE works with ChartObject ...
    (comp.lang.python)
  • win32com ChartObject pythonwin vs idle
    ... I'm curious as to why the difference between IDLE and pythonWin when ... opening an excel file, i've attempted to grab the chart information ... work in IDLE. ...
    (comp.lang.python)
  • Re: How to create a file on users XP desktop
    ... How did you learn Win32com? ... documentation. ... usage examples when I browse COM in PythonWin. ... The ActiveState Python (AKA ActivePython) has an IDE that allows you ...
    (comp.lang.python)
  • Re: How to create a file on users XP desktop
    ... How did you learn Win32com? ... documentation. ... Trying to browse COM in PythonWin is tough - there's tons of stuff in ... usage examples when I browse COM in PythonWin. ...
    (comp.lang.python)