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" <kpo...@hotmail.com> wrote in message news:snt128-w10372245b8a4d462238f49d9...@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@python.org > From: rup...@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@python.org > >> http://mail.python.org/mailman/listinfo/python-win32 > >> > > > > _______________________________________________ > > python-win32 mailing list > > python-win32@python.org > > http://mail.python.org/mailman/listinfo/python-win32 > > > > > > _______________________________________________ > python-win32 mailing list > python-win32@python.org > http://mail.python.org/mailman/listinfo/python-win32 -------------------------------------------------------------------------------- > _______________________________________________ > python-win32 mailing list > python-win32@python.org > http://mail.python.org/mailman/listinfo/python-win32 > _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32