Event when application loses focus

Rickey, Kyle W Kyle.Rickey at bakerhughes.com
Thu Nov 1 12:34:25 PDT 2007


Is there an event to bind to for when my application loses focus? I want
to check when a user clicks on another window such as firefox, etc. I
tried

 

self.Bind(wx.EVT_KILL_FOCUS, self.OnFocusLost)  and
self.Bind(wx.EVT_LEAVE_WINDOW, self.OnFocusLost) but nothing happens. Is
there such an event for MSW?

 

 

-Kyle Rickey

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20071101/88b8fa3d/attachment.htm


More information about the wxpython-users mailing list