From: Kevin A. <al...@se...> - 2004-05-10 18:21:38
|
On May 10, 2004, at 10:58 AM, ralph heimburger wrote: > > In my pythoncard app I have a combobox. I read the documentation on > wxCombobox and it notes the following events: > EVT_COMBOBOX(id, func) Process a wxEVT_COMMAND_COMBOBOX_SELECTED > event, when an item on the list is selected. > EVT_TEXT(id, func) Process a wxEVT_COMMAND_TEXT_UPDATED event, when > the combobox text changes > > > So I defined an event: > > def on_OutputType_selected(self, event): > ... > > The event never fires. > > I also tried : > > def on_OutputType_updated(self, event): > > no luck either. > PythonCard is not wxPython, it is a wrapper around wxPython, so it has its own naming conventions for events. The event names you're looking for are 'select' and 'textUpdate'. These are documented at: http://pythoncard.sourceforge.net/framework/components/ComboBox.html The most useful tool for seeing the events in your application is the Message Watcher. If you run your app with the -m command-line option or run with the debug menu and then select Message Watcher from the Debug menu it will show you all events. Events that you don't have event handlers defined for will be shown with parens ( ) around the event. ka |