X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d6ff08218e7dc76fbc1a8923e3b1baa72265e62..3cebfef17b54f9dacc386f090827b8badb2773d2:/wxPython/demo/ComboBox.py?ds=sidebyside diff --git a/wxPython/demo/ComboBox.py b/wxPython/demo/ComboBox.py index dc16c72b29..4ab15a6467 100644 --- a/wxPython/demo/ComboBox.py +++ b/wxPython/demo/ComboBox.py @@ -40,7 +40,7 @@ class TestComboBox(wx.Panel): # This combobox is created with no values initially. cb = wx.ComboBox( - self, 501, "default value", (90, 80), (95, -1), [], wx.CB_SIMPLE) + self, 501, "default value", (90, 80), (95, -1), [], wx.CB_DROPDOWN) # Here we dynamically add our values to the second combobox. for item in sampleList: @@ -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:])