- EVT_LEFT_DOWN(self, self.OnLeftDown)
- EVT_LEFT_UP(self, self.OnLeftUp)
- EVT_RIGHT_UP(self, self.OnRightUp)
- EVT_MOTION(self, self.OnMotion)
+ 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)
+
+ # the window resize event and idle events for managing the buffer
+ wx.EVT_SIZE(self, self.OnSize)
+ wx.EVT_IDLE(self, self.OnIdle)