- wx.EVT_LEFT_DOWN(self, self.OnLeftDown)
- wx.EVT_LEFT_UP(self, self.OnLeftUp)
- wx.EVT_RIGHT_UP(self, self.OnRightUp)
- wx.EVT_MOTION(self, self.OnMotion)
- wx.EVT_PAINT(self, self.OnPaint)
+ self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
+ self.Bind(wx.EVT_LEFT_UP, self.OnLeftUp)
+ self.Bind(wx.EVT_RIGHT_UP, self.OnRightUp)
+ self.Bind(wx.EVT_MOTION, self.OnMotion)
+ self.Bind(wx.EVT_PAINT, self.OnPaint)