Python constants 2005-04-22 - By Nick
Back Please ignore... doh! looking in the wrong place, sorry for the wasted bandwidth...
On 4/22/05, Nick <nick.petit@(protected)> wrote: > Hi there, > > I'm moving on to Python and slowly trudging through it, have read up a > lot of the pythons related posts, the python stuff on XSIBLog etc... > one thing has got me stumped though and that's why would, after > importing the win32com.client constants as c, c.siString works but > c.siControlCombo doesn't? > > When running this line: > oItem = olayout.AddEnumControl( "Constraint", list, "Which > constraint?", c.siControlCombo ) > > I keep on getting this error: > #ERROR : Traceback (most recent call last): > # File "<Script Block >", line 16, in ? > # oItem = olayout.AddEnumControl( "Constraint", list, "Which > constraint?", c.siControlCombo ) > # File "<COMObject <unknown>>", line 2, in AddEnumControl > # File "C:\Python24\lib\site-packages\win32com\client\dynamic.py", > line 251, in _ApplyTypes_ > # result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags, > retType, argTypes) + args) > #TypeError: Objects of type 'type' can not be converted to a COM VARIANT > > Cheers, > Nick. >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|