- EVT_PAINT(self, self.OnPaint)
- EVT_ERASE_BACKGROUND(self, lambda x: None)
- EVT_SIZE(self, self.OnSize)
- EVT_TIMER(self, -1, self.OnTimerExpire)
- EVT_WINDOW_DESTROY(self, self.OnQuit)
+ self.Bind(wx.EVT_PAINT, self.OnPaint)
+ self.Bind(wx.EVT_ERASE_BACKGROUND, lambda x: None)
+ self.Bind(wx.EVT_SIZE, self.OnSize)
+ self.Bind(wx.EVT_TIMER, self.OnTimerExpire)
+ self.Bind(wx.EVT_WINDOW_DESTROY, self.OnQuit)