]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/samples/wxPIA_book/Chapter-07/choice.py
fix building/running of tex2rtf
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-07 / choice.py
... / ...
CommitLineData
1import wx
2
3class ChoiceFrame(wx.Frame):
4 def __init__(self):
5 wx.Frame.__init__(self, None, -1, 'Choice Example',
6 size=(250, 200))
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)
12
13if __name__ == '__main__':
14 app = wx.PySimpleApp()
15 ChoiceFrame().Show()
16 app.MainLoop()