]> git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-07/checkbox.py
don't use strlen() to verify the length of the string as it can contain embedded...
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-07 / checkbox.py
1 import wx
2
3 class CheckBoxFrame(wx.Frame):
4 def __init__(self):
5 wx.Frame.__init__(self, None, -1, 'Checkbox Example',
6 size=(150, 200))
7 panel = wx.Panel(self, -1)
8 wx.CheckBox(panel, -1, "Alpha", (35, 40), (150, 20))
9 wx.CheckBox(panel, -1, "Beta", (35, 60), (150, 20))
10 wx.CheckBox(panel, -1, "Gamma", (35, 80), (150, 20))
11
12 if __name__ == '__main__':
13 app = wx.PySimpleApp()
14 CheckBoxFrame().Show()
15 app.MainLoop()
16