- EVT_LEFT_DOWN(self, self.OnMouseLeftDown)
- EVT_MOTION(self, self.OnMouseMotion)
- EVT_LEFT_UP(self, self.OnMouseLeftUp)
- EVT_RIGHT_UP(self, self.OnRightUp)
- EVT_LEFT_DOWN(st, self.OnMouseLeftDown)
- EVT_MOTION(st, self.OnMouseMotion)
- EVT_LEFT_UP(st, self.OnMouseLeftUp)
- EVT_RIGHT_UP(st, self.OnRightUp)
+ self.Bind(wx.EVT_LEFT_DOWN, self.OnMouseLeftDown)
+ self.Bind(wx.EVT_MOTION, self.OnMouseMotion)
+ self.Bind(wx.EVT_LEFT_UP, self.OnMouseLeftUp)
+ self.Bind(wx.EVT_RIGHT_UP, self.OnRightUp)
+
+ st.Bind(wx.EVT_LEFT_DOWN, self.OnMouseLeftDown)
+ st.Bind(wx.EVT_MOTION, self.OnMouseMotion)
+ st.Bind(wx.EVT_LEFT_UP, self.OnMouseLeftUp)
+ st.Bind(wx.EVT_RIGHT_UP, self.OnRightUp)