From 0ad3c2046e5d51c30ca462810484079bb8d7c518 Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Fri, 13 Aug 2010 19:03:22 +0200 Subject: [PATCH] Change the flags a bit --- gui/fitMultiSwitch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/fitMultiSwitch.py b/gui/fitMultiSwitch.py index 7d8e44a79..89247b2c1 100644 --- a/gui/fitMultiSwitch.py +++ b/gui/fitMultiSwitch.py @@ -24,8 +24,10 @@ from gui.statsPane import StatsPane class FitMultiSwitch(wx.aui.AuiNotebook): def __init__(self, parent): wx.aui.AuiNotebook.__init__(self, parent, wx.ID_ANY) + self.closeButtonActiveflag = self.GetWindowStyleFlag() - self.closeButtonInactiveFlag &= ~(wx.aui.AUI_NB_CLOSE_BUTTON | wx.aui.AUI_NB_CLOSE_ON_ACTIVE_TAB | wx.aui.AUI_NB_CLOSE_ON_ALL_TABS) + self.closeButtonInactiveFlag = self.closeButtonActiveflag & ~(wx.aui.AUI_NB_CLOSE_BUTTON | wx.aui.AUI_NB_CLOSE_ON_ACTIVE_TAB | wx.aui.AUI_NB_CLOSE_ON_ALL_TABS) + self.SetWindowStyle(self.closeButtonActiveflag) self.SetArtProvider(wx.aui.AuiSimpleTabArt()) self.AddPage(wx.Panel(self), "+") self.SetBackgroundColour(parent.GetBackgroundColour())