What about simply "gen_app.Activate()" ?

>>> gen_app.Activate()
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
  File "c:\python21\win32com\gen_py\8C025610-7F9C-11D2-A604-0000C05CF0F8x0x1x0.py", 
line 218, in Activate
    return self._oleobj_.InvokeTypes(0x10, LCID, 1, (24, 0), (),)AttributeError: 
InvokeTypes

When I type gen_app. in PythonWin, the autocompletion
list members are;
CLSID
coclass_interfaces
coclass_sources
default_interface
default_source



On Sat, 14 Jul 2001 15:56:14 +1000, Mark Hammond wrote:

> >>> gen_app
> <win32com.gen_py.Canto Cumulus 5 OLE Automation.Application>
> 
> >>> gen_app.default_interface.Activate()

What about simply "gen_app.Activate()" ?

> Traceback (most recent call last):  File "<interactive input>",
> line 1, in ?TypeError: unbound method Activate() must be called
> with instance as first argument
> Evidently I have the class, not an instance, how do I get an instance?
> 
> dis_mod.Activate()
> The Cumulus app starts up
> I'd prefer to use the classes in the gen_py module.

This should happen automatically - and from the look of your mail, it is.

Mark.


_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to