[python-win32] Referring to default (unnamed) property

Łukasz Jakubowski lukaszj at onet.pl
Wed May 7 22:46:38 CEST 2014


Hello,

How do I refer to an unnamed property (like the one on this page:  
http://www.gpsoft.com.au/help/opus11/index.html#!Documents/Scripting/Vars.htm)?

str(type(DOpus.vars))
or
str(type(DOpus.vars(0)))
gives me:
<class 'win32com.client.dynamic.CDispatch'>

I can access methods mentioned on the page without problems, but this  
default property is a mystery to me.

Maybe related: str(DOpus.vars(0)) does not work as well, but  
DOpus.vars.Get('SomeSetVariable') works OK.

TIA,

Regards,
Łukasz


More information about the python-win32 mailing list