import wx
class CheckBoxFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, -1, 'Checkbox Example', size=(150, 200))
panel = wx.Panel(self, -1)
wx.CheckBox(panel, -1, "A", (35, 40), (150, 20))
wx.CheckBox(panel, -1, "B", (35, 60), (150, 20))
wx.CheckBox(panel, -1, "C", (35, 80), (150, 20))
app = wx.PySimpleApp()
CheckBoxFrame().Show()
app.MainLoop()
19.3.CheckBox |
| 19.3.1. | Add check box to frame | |