X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a5d9c77bb86ba15dd3701b4d6a3539619f89d876..85149efad7fc85798de59e8a680616aa5ad85ffb:/wxPython/demo/ComboBox.py diff --git a/wxPython/demo/ComboBox.py b/wxPython/demo/ComboBox.py index 4ab15a6467..76f9f23ba1 100644 --- a/wxPython/demo/ComboBox.py +++ b/wxPython/demo/ComboBox.py @@ -47,12 +47,11 @@ class TestComboBox(wx.Panel): cb.Append(item, item.upper()) self.Bind(wx.EVT_COMBOBOX, self.EvtComboBox, cb) - self.Bind(wx.EVT_COMBOBOX, self.EvtText, cb) # When the user selects something, we go here. def EvtComboBox(self, evt): cb = evt.GetEventObject() - data = cb.GetClientData(cb.GetSelection()) + data = cb.GetClientData(evt.GetSelection()) self.log.WriteText('EvtComboBox: %s\nClientData: %s\n' % (evt.GetString(), data)) if evt.GetString() == 'one':