Re: [python-win32] win32com does not recognise an Interface for events

2007-08-10 Thread Thomas Heller
Len Remmerswaal schrieb: > > import comtypes.client as cc > import comtypes.gen.S7PROSIMLib as S7PS > class testVehikel: > def __init__(self, progid, eventsClass): > self.intf = cc.CreateObject(progid) > self.rcvr = eventsClass() ## just added () to assign an obj i.o. a > cl

Re: [python-win32] win32com does not recognise an Interface for events

2007-08-10 Thread Len Remmerswaal
I now have something that actually works. See below. On 09-Aug-07 20:26, Thomas Heller wrote: So I did it slightly different: import comtypes.client as cc import comtypes.gen.S7PROSIMLib as S7PS class testVehikel: def __init__(self, progid, eventsClass): self.intf = cc.Cre

Re: [python-win32] win32com does not recognise an Interface for events

2007-08-09 Thread Thomas Heller
>> >> You could try comtypes: it should support custom interfaces and >> >> custom event interfaces. >> >> >> >> 'easy_install comtypes==dev' to get the SVN version. >> >> > > Wow. The battle of the packages is afoot :-) > > Thanks for the hint: I did not know about this package. > > I have given i

Re: [python-win32] win32com does not recognise an Interface for events

2007-08-09 Thread Len Remmerswaal
On 20:59, Thomas Heller wrote: OLE Viewer finds a second interface IS7ProSimEvents that is made the default source makepy does not recognise IS7ProSimEvents as an interface at all. It would appear that makepy is excluding non-dual interfaces, and that the integr

Re: [python-win32] win32com does not recognise an Interface for events

2007-08-07 Thread Thomas Heller
>> OLE Viewer finds a second interface IS7ProSimEvents that is >> made the default source makepy does not recognise >> IS7ProSimEvents as an interface at all. > > > It would appear that makepy is excluding non-dual interfaces, and that the > integration with the 'universal' support for vtable i

Re: [python-win32] win32com does not recognise an Interface for events

2007-08-07 Thread Mark Hammond
> OLE Viewer finds a second interface IS7ProSimEvents that is > made the default source makepy does not recognise > IS7ProSimEvents as an interface at all. That seems strange - for events, even non-dual interfaces should be supported. > gencache.GetClassForCLSID(clsid) returns the class with

[python-win32] win32com does not recognise an Interface for events

2007-08-07 Thread Len Remmerswaal
Hi, I am trying to apply the Siemens S7ProSim Automation object using Python. However, after running makepy my test script fails. I have done some digging into DispatchWithEvents, makepy and MSDN. It turns out that the event interface seems not to be included in the result file from makepy, wh