[wxPython] EVT_SET_FOCUS from one notebook page

Hi All,

I've created one scrolled window [which have all kind of contols] and added
in wxNoteBook as one of the page.
When I try to register an event handler for event EVT_SET_FOCUS in this
page, the handler is not invoked.

Here is the part of the Page class.

class Page(wxScrolledWindow):
    def __init__(self, parent):
        wxScrolledWindow.__init__(self, parent, -1,style=wxSUNKEN_BORDER)
        
        EVT_SIZE(self,self.onSize)
        EVT_SET_FOCUS(self,self.OnSetFocus)
        
    def OnSetFocus(self,event):
        print "In OnSetFocus"

Thanks for help in finding the reason.
Maharajan

I've created one scrolled window [which have all kind of contols] and

added

in wxNoteBook as one of the page.
When I try to register an event handler for event EVT_SET_FOCUS in this
page, the handler is not invoked.

If the scrolled window (or a wxPanel) has children then I think it always
passes focus to one of it's children.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!