]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxCheckBox.py
reverted the delete/Destroy() change in DestroyChildren()
[wxWidgets.git] / wxPython / demo / wxCheckBox.py
index 45f82e2f48c10dfcd86c2614d6b14a79edb20487..529de660bbbf476d73c4d508ccb3bd05968a2437 100644 (file)
@@ -11,10 +11,10 @@ class TestCheckBox(wxPanel):
         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)
+        cb2.SetValue(True)
         cb3 = wxCheckBox(self, cID+2, "  Pears", wxPoint(65, 80), wxSize(150, 20), wxNO_BORDER)
 
         EVT_CHECKBOX(self, cID,   self.EvtCheckBox)
@@ -51,3 +51,11 @@ overview = """\
 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])])
+