wxStaticText(self, -1, "This example uses the wxCheckBox control.",
wxPoint(10, 10))
- cID = NewId()
+ cID = wxNewId()
cb1 = wxCheckBox(self, cID, " Apples", wxPoint(65, 40), wxSize(150, 20), wxNO_BORDER)
cb2 = wxCheckBox(self, cID+1, " Oranges", wxPoint(65, 60), wxSize(150, 20), wxNO_BORDER)
cb2.SetValue(True)
A checkbox is a labelled box which is either on (checkmark is visible) or off (no checkmark).
"""
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+