- menu.Append(x, str(x), kind=wxITEM_CHECK)
- EVT_MENU_RANGE(self, 1, self.maxThickness, self.OnMenuSetThickness)
- EVT_UPDATE_UI_RANGE(self, 1, self.maxThickness, self.OnCheckMenuThickness)
+ menu.Append(x, str(x), kind=wx.ITEM_CHECK)
+
+ self.Bind(wx.EVT_MENU_RANGE, self.OnMenuSetThickness, id=1, id2=self.maxThickness)
+ self.Bind(wx.EVT_UPDATE_UI_RANGE, self.OnCheckMenuThickness, id=1, id2=self.maxThickness)