- cID = NewId()
- 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)
- cb3 = wxCheckBox(self, cID+2, " Pears", wxPoint(65, 80), wxSize(150, 20), wxNO_BORDER)
-
- EVT_CHECKBOX(self, cID, self.EvtCheckBox)
- EVT_CHECKBOX(self, cID+1, self.EvtCheckBox)
- EVT_CHECKBOX(self, cID+2, self.EvtCheckBox)
+ cID = wx.NewId()
+ cb1 = wx.CheckBox(self, cID, " Apples", (65, 40), (150, 20), wx.NO_BORDER)
+ cb2 = wx.CheckBox(self, cID+1, " Oranges", (65, 60), (150, 20), wx.NO_BORDER)
+ cb2.SetValue(True)
+ cb3 = wx.CheckBox(self, cID+2, " Pears", (65, 80), (150, 20), wx.NO_BORDER)