]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ComboBox.py
Added GetResourcesDir and GetLocalizedResourcesDir to
[wxWidgets.git] / wxPython / demo / ComboBox.py
index 4ab15a6467f257830acbd271bfe97a26420f86ea..76f9f23ba15707172986dfa32ce7bd950f56ef9e 100644 (file)
@@ -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':