- EVT_UPDATE_THROBBER(self, self.Rotate)
- wx.EVT_PAINT(self, self.OnPaint)
- wx.EVT_TIMER(self, timerID, self.OnTimer)
- wx.EVT_WINDOW_DESTROY(self, self.OnDestroyWindow)
-
+ self.Bind(EVT_UPDATE_THROBBER, self.Rotate)
+ self.Bind(wx.EVT_PAINT, self.OnPaint)
+ self.Bind(wx.EVT_TIMER, self.OnTimer, self.timer)
+ self.Bind(wx.EVT_WINDOW_DESTROY, self.OnDestroyWindow)
+
+
+ def DoGetBestSize(self):
+ return (self.width, self.height)
+