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

Roger Upole rupole at hotmail.com
Mon Jan 31 15:11:15 CET 2011


Many OCX controls require a full activex container to function correctly.
Pythonwin can act as a host, or you could embed your control in IE
with an <object> tag and access it thru IE's  COM interfaces.

         Roger


"Patricio Stegmann" <kpoman at hotmail.com> wrote in message 
news:SNT128-W10372245B8A4D462238F49D9E20 at phx.gbl...

Roger,

Thanks for your tip !
I tried that but it's still not reporting the events.
Maybe this activex does rely or force one to have a gui. Do you know a 
workaround for this kind of cases ? Is there a way to print if this is the 
case ? Or to see what is going on ?

Thank you,

> To: python-win32 at python.org
> From: rupole at hotmail.com
> Date: Mon, 31 Jan 2011 00:30:32 -0500
> Subject: Re: [python-win32] attaching an event handler to alreadycreated 
> object
>
> 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
> >
>
>
>
> _______________________________________________
> 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