[python-win32] Tab-completion of data/properties and win32com

Mark Hammond mhammond at skippinet.com.au
Mon Aug 2 10:47:13 CEST 2004


> I am trying to use IPython interactively to do some win32com
> programming
> and want to use the completion feature.  The problem is that
> tab-completion only completes the object methods, and not the
> associated
> properties, for instance:

IDLE doesn't have special knowledge of COM objects.  Pythonwin does though -
it shows the Excel properties in that example.

You could try and find the place in IDLE where the list is built, and copy
the code from pywin\scintilla\view.py - look for the comment "# The object
may be a COM object with typelib support - lets see if we can get its
props."  Then submit a patch for IDLE, and it may well be accepted.

Another cute idea would be to hack makepy to use "properties" for 2.3 and
later - this should make them look more "real" - but IDLE may not support
that yet (and it would be non-trivial anyway)

Mark.



More information about the Python-win32 mailing list