Not getting mouse clicks

I'm in the middle of a big refactoring in a large complicated wxPython application. So, needless to say, I have broken code everywhere.

But the odd thing is, I'm not getting any mouse clicks on any panel (button, grid, scrollbar). Nothing. Like my mouse has been stuffed with glue.

All keyboard events come through fine. The Windows frame decorator buttons work as does the menu.

Can anyone speculate what dumb thing I've done that might be eating mouse clicks?

(I upgraded to 2.8.8.1 at about the time this started but I doubt that had anything to do with it.)

Thanks,
Michael Hipp
Heber Springs, Arkansas, USA

Michael Hipp wrote:

I'm in the middle of a big refactoring in a large complicated wxPython application. So, needless to say, I have broken code everywhere.

But the odd thing is, I'm not getting any mouse clicks on any panel (button, grid, scrollbar). Nothing. Like my mouse has been stuffed with glue.

All keyboard events come through fine. The Windows frame decorator buttons work as does the menu.

Can anyone speculate what dumb thing I've done that might be eating mouse clicks?

I've seen this happen before in situations where the parentage of widgets is messed up. For example, something like the widgets are children of the frame but are layed out as if they were children of a panel, and that panel is layered in there somewhere and stealing the events that should be going to the widgets...

Add the WIT to your app, it may help you track down things like that. http://wiki.wxpython.org/Widget_Inspection_Tool

ยทยทยท

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

Robin Dunn wrote:

Michael Hipp wrote:

I'm in the middle of a big refactoring in a large complicated wxPython application. So, needless to say, I have broken code everywhere.

But the odd thing is, I'm not getting any mouse clicks on any panel (button, grid, scrollbar). Nothing. Like my mouse has been stuffed with glue.

All keyboard events come through fine. The Windows frame decorator buttons work as does the menu.

Can anyone speculate what dumb thing I've done that might be eating mouse clicks?

I've seen this happen before in situations where the parentage of widgets is messed up. For example, something like the widgets are children of the frame but are layed out as if they were children of a panel, and that panel is layered in there somewhere and stealing the events that should be going to the widgets...

Add the WIT to your app, it may help you track down things like that. http://wiki.wxpython.org/Widget_Inspection_Tool

Ah! You are correct. I was giving it 'frame' as a parent rather than 'frame.panel'. Works now.

Thanks for the heads up about WIT. I'll read up on it.

Thanks,
Michael