[wingide-users] Name completion on .NET and COM objects

Wingware Support support at wingware.com
Fri Oct 10 09:51:47 MDT 2008

Wikström Sven wrote:
> I have an issue with name completion on COM (win32com) and .NET (Pythonnet) objects. Completion works on Pythonwin but not on Wing. While Pythonwin lists all available attributes on these objects, Wing only shows the COM attributes i.e not the COM objects own attributes. Same applies to .NET object.
> Ex. for COM late binding:
>>>> import win32com.client
>>>> excel = win32com.client.Dispatch("Excel.Application")
>>>> # Pythonwin lists all available attributes when
>>>> # hitting the "." after "excel"
>>>> #  <here>
>>>> #    |
>>>> #    v
>>>> excel.Application()
> u'Microsoft Excel'
>>>> # Using Wing you only get what seems to be COM low-level stuff.
> Ex. .NET through Pythonnet
>>>> import clr
>>>> import System
>>>> # Pythonwin lets us e.g select Math and PI.
>>>> # Wing displays nothin...
>>>> System.Math.PI
> 3.1415926535897931

Is this in the editor or in either the interactive shell or debug probe? 
  It should work in the shell or probe, but it won't work in the editor 
because the editor relies on static analysis.



More information about the wingide-users mailing list