X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..71aba8333cc915afff9e740c944f7fa7247abacb:/wxPython/demo/wxCheckBox.py diff --git a/wxPython/demo/wxCheckBox.py b/wxPython/demo/wxCheckBox.py index e2e81e3f28..529de660bb 100644 --- a/wxPython/demo/wxCheckBox.py +++ b/wxPython/demo/wxCheckBox.py @@ -11,7 +11,7 @@ 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) @@ -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])]) +