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
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
>> >> 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
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
>> 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
> 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
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