From 71fe50bfcccba3580fcd426312ad858c2459e290 Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Thu, 2 Sep 2010 21:45:40 +0200 Subject: [PATCH] Don't register EVT_NOTEBOOk_CHANGED on the mainframe, but on OURSELVES .. Seriously, wtf ? --- gui/multiSwitch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/multiSwitch.py b/gui/multiSwitch.py index 7a6b87d6b..c32268e55 100644 --- a/gui/multiSwitch.py +++ b/gui/multiSwitch.py @@ -35,7 +35,7 @@ class MultiSwitch(wx.Notebook): self.mainFrame = gui.mainFrame.MainFrame.getInstance() - self.mainFrame.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED, self.pageChanged) + self.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED, self.pageChanged) self.mainFrame.Bind(sb.EVT_FIT_RENAMED, self.processRename) self.mainFrame.Bind(sb.EVT_FIT_SELECTED, self.changeFit) self.mainFrame.Bind(sb.EVT_FIT_REMOVED, self.processRemove) @@ -106,6 +106,7 @@ class MultiSwitch(wx.Notebook): self.SetPageImage(tab, self.imageList.Add(bitmap)) def pageChanged(self, event): + print "p" selection = event.Selection page = self.GetPage(selection) if hasattr(page, "type") and page.type == "fit":