wxComboBox Events,
Marko Djogatovic
letter at tron-inter.net
Tue May 29 17:48:18 EDT 2001
Hi,
I've created a program using wxPython library.
When I use combobox events,
instead of one I recive two or more events. Why?
Example:
class SomePanel(wxPanel):
def __init__(self, parent):
...
self.cbo = wxComboBox(self, 300, "default", choices = ["aaa", "bbb"])
...
EVT_COMBOBOX(self, 300, self.EvtComboBox)
...
def EvtComboBox(self, evt):
print self.GetString()
--------------------------------------------------------------------------
>>>
aaa
aaa
aaa
Thanks,
Marko Djogatovic
More information about the Python-list
mailing list