X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..9f4a1fed4506d8a03c848f9c8e2e85a1dd249880:/wxPython/demo/Choice.py?ds=sidebyside diff --git a/wxPython/demo/Choice.py b/wxPython/demo/Choice.py index afa3ac1264..ef9db235b8 100644 --- a/wxPython/demo/Choice.py +++ b/wxPython/demo/Choice.py @@ -12,8 +12,8 @@ class TestChoice(wx.Panel): 'six', 'seven', 'eight'] wx.StaticText(self, -1, "This example uses the wxChoice control.", (15, 10)) - wx.StaticText(self, -1, "Select one:", (15, 50), (75, 20)) - self.ch = wx.Choice(self, -1, (80, 50), choices = sampleList) + wx.StaticText(self, -1, "Select one:", (15, 50), (75, -1)) + self.ch = wx.Choice(self, -1, (100, 50), choices = sampleList) self.Bind(wx.EVT_CHOICE, self.EvtChoice, self.ch) @@ -50,5 +50,5 @@ The number of choices and the choice array are consilidated into one python 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:])