I can't figure out why my app is not receiving wxEVT_COMMAND_BUTTON_CLICKED events.
Apparently I can recreate the problem using wxXmlResource.py in the demo directory. I merely
added...
EVT_BUTTON(self, XRCID('wxID_OK'), self.OnClick)
... to the end of TestPanel.__init__ and added TestPanel.OnClick(). Clicking on the "Save" button
should generate a wxEVT_COMMAND_BUTTON_CLICKED event, but it's not happening. I've
attached the modified file.
I can't figure out why my app is not receiving wxEVT_COMMAND_BUTTON_CLICKED events. Apparently I can recreate the problem using wxXmlResource.py in the demo directory. I merely added...
EVT_BUTTON(self, XRCID('wxID_OK'), self.OnClick)
... to the end of TestPanel.__init__ and added TestPanel.OnClick(). Clicking on the "Save" button should generate a wxEVT_COMMAND_BUTTON_CLICKED event, but it's not happening. I've
attached the modified file.