]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-07/choice.py
3 class ChoiceFrame(wx
.Frame
):
5 wx
.Frame
.__init
__(self
, None, -1, 'Choice Example',
7 panel
= wx
.Panel(self
, -1)
8 sampleList
= ['zero', 'one', 'two', 'three', 'four', 'five',
9 'six', 'seven', 'eight']
10 wx
.StaticText(panel
, -1, "Select one:", (15, 20))
11 wx
.Choice(panel
, -1, (85, 18), choices
=sampleList
)
13 if __name__
== '__main__':
14 app
= wx
.PySimpleApp()