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

Roger Upole rupole at hotmail.com
Mon Jan 31 06:30:32 CET 2011


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 can pass an existing IDispatch object to DispatchWithEvents
>> as the first arg in place of a clsid.
>>
>>   Roger
>>
>>
>>
>> _______________________________________________
>> python-win32 mailing list
>> python-win32 at python.org
>> http://mail.python.org/mailman/listinfo/python-win32
>>
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
> 





More information about the python-win32 mailing list