X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..cefae4bc3cac29222757afbd605867b34f421af9:/wxPython/demo/ComboBox.py?ds=inline diff --git a/wxPython/demo/ComboBox.py b/wxPython/demo/ComboBox.py index 04337e661c..9cebf42113 100644 --- a/wxPython/demo/ComboBox.py +++ b/wxPython/demo/ComboBox.py @@ -35,7 +35,7 @@ class TestComboBox(wx.Panel): cb.Bind(wx.EVT_SET_FOCUS, self.OnSetFocus) cb.Bind(wx.EVT_KILL_FOCUS, self.OnKillFocus) - # Once the combobox is set up, we append some more data to it. + # Once the combobox is set up, we can append some more data to it. cb.Append("foo", "This is some client data for this item") # This combobox is created with no values initially. @@ -49,7 +49,7 @@ class TestComboBox(wx.Panel): self.Bind(wx.EVT_COMBOBOX, self.EvtComboBox, cb) self.Bind(wx.EVT_COMBOBOX, self.EvtText, cb) - # The user selects something, we go here. + # When the user selects something, we go here. def EvtComboBox(self, evt): cb = evt.GetEventObject() data = cb.GetClientData(cb.GetSelection()) @@ -103,5 +103,5 @@ event is generated every time that the user hits a key in the ComboBox entry fie if __name__ == '__main__': import sys,os import run - run.main(['', os.path.basename(sys.argv[0])]) + run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])