Hey all (again), congrats on 0.5.3!

I can't seem to get apps by using GetEvents(), but ShowEvents() works fine.

My app is running in wxpython app and, hopefully, gets its event pump from the wx.MainLoop()

I have a simple window that holds my ActiveX control:

app = wx.App(False)
frame = wx.Frame(None)
activeX = MyActiveXControlWindow(frame)
control = activeX.ctrl
frame.Show()
app.MainLoop()

Somewhere during the running of the app, this gets called:

class MySink(object):
   def _IFooEvents_RecordingStops(self):
       print "_IFooEvents_RecordingStops"

...
sink = MySink()
connection = GetEvents(control, sink = MySink())
...


But I never get any calls on MySink of any kind.

However, if I replace the GetEvents() with a ShowEvents() not only do the possible Events list but I get my notifications that a given event is generated (like MouseOver).

Looking at the _events.py code, I can't even see where the PumpEvents() is being done in ShowEvents(), but that's another question.

Any idea what I'm doing wrong to not get Events in my code, but ShowEvents works fine?

Thanks again!
-Sandy

begin:vcard
fn:Alexander "Sandy" Walsh
n:Walsh;Alexander "Sandy"
org:Impath Networks
adr:Suite 100;;42 Payzant Ave;Halifax;NS;B3B 1Z6;Canada
email;internet:swa...@impathnetworks.com
title:Software Developer
tel;work:902-468-1010 x 246
x-mozilla-html:FALSE
url:http://www.impathnetworks.com http://www.pstdvr.com
version:2.1
end:vcard

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to