- wx.Notebook.__init__(self, parent, id=-1, style=wx.NO_FULL_REPAINT_ON_RESIZE)
- wx.EVT_NOTEBOOK_PAGE_CHANGING(self, self.GetId(),
- self.OnPageChanging)
- wx.EVT_NOTEBOOK_PAGE_CHANGED(self, self.GetId(),
- self.OnPageChanged)
- wx.EVT_IDLE(self, self.OnIdle)
+ wx.Notebook.__init__(self, parent, id=-1, style=wx.CLIP_CHILDREN)
+ self.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGING, self.OnPageChanging, id=self.GetId())
+ self.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED, self.OnPageChanged, id=self.GetId())
+ self.Bind(wx.EVT_IDLE, self.OnIdle)