Fix the bug fixing in multiswitch for wxmac/wxgtk :D

This commit is contained in:
HomeWorld
2010-10-10 04:03:23 +03:00
parent 25cd1c6cde
commit 66af2cf96f

View File

@@ -106,6 +106,8 @@ class MultiSwitch(wx.Notebook):
def checkAdd(self, event):
if event.Selection == self.GetPageCount() - 1:
if "__WXMSW__" not in wx.PlatformInfo:
self.countEvt = 1
self.AddTab()
@@ -132,7 +134,8 @@ class MultiSwitch(wx.Notebook):
selection = self.AddTab()
else:
selection = event.Selection
self.countEvt = 0
if "__WXMSW__" in wx.PlatformInfo:
self.countEvt = 0
page = self.GetPage(selection)