Re: [python-win32] attaching an event handler to alreadycreated object

2011-01-30 Thread Roger Upole
Try replacing self.m__signpad = TopazSigPlus.SigPlus() with self.m__signpad = win32com.client.DispatchWithEvents(TopazSigPlus.SigPlus(), MyEvents) Roger Patricio Eduardo Stegmann wrote: > Hi Roger, > > could you please be a bit more specific ? > > > - Original message - >> You c

Re: [python-win32] attaching an event handler to already created object

2011-01-30 Thread Patricio Eduardo Stegmann
Hi Roger, could you please be a bit more specific ? - Original message - > You can pass an existing IDispatch object to DispatchWithEvents > as the first arg in place of a clsid. > >                  Roger > > > > ___ > python-win32 mailin

Re: [python-win32] attaching an event handler to already created object

2011-01-30 Thread Patricio Eduardo Stegmann
Hi Roger, could you please be a bit more specific ? - Original message - > You can pass an existing IDispatch object to DispatchWithEvents > as the first arg in place of a clsid. > >                  Roger > > > > ___ > python-win32 mailin

Re: [python-win32] attaching an event handler to already created object

2011-01-30 Thread Roger Upole
You can pass an existing IDispatch object to DispatchWithEvents as the first arg in place of a clsid. Roger ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] attaching an event handler to already created object

2011-01-30 Thread Patricio Stegmann
Hello, I am trying to attach an event handler to a running pythoncom object. The problem is I am not instantiating it via Dispatch. Basically I generated the python wrapper code (via makepy), and renamed it to a specific name, say, SignpadActivex. The code is the following: """ import os, sys