[wxPython] EVT_CHAR in wxNotebooks

I have an application that has a lot of windows. I use to just create new
framed windows, but I've decided to attach windows to a wxNotebook for
organization sake. While it's easy enough to add the windows to the
wxNotebook, all my EVT_CHAR seem to unhook (by this I mean the event handler
don't get called). They work fine when are in a frame or a normal child
window.

Thanks

chris

Chris Davis wrote:

I have an application that has a lot of windows. I use to just create new
framed windows, but I've decided to attach windows to a wxNotebook for
organization sake. While it's easy enough to add the windows to the
wxNotebook, all my EVT_CHAR seem to unhook (by this I mean the event handler
don't get called). They work fine when are in a frame or a normal child
window.

I had a problem with windows within notebooks with regards to constraints. It
may be the same problem/solution ?
I added a wxWindow to a notebook with the AddPage method but the constraints
wouldn't work. If I changed the wxWindow to a wxPanel it then worked.

Apparently the wxPanel honors the EVT_SIZE event and calls the Layout method,
where as the wxWindow does not. It may be a similar thing with EVT_CHAR. Try
changing your windows to wxPanel *or* registering your own EVT_CHAR handler.

I hope I haven't misinterpreted your problem.
Brendan Simon.