Use native notebook. TODO: Add close buttons
This commit is contained in:
@@ -21,16 +21,10 @@ import wx.aui
|
|||||||
from gui.fittingView import FittingView
|
from gui.fittingView import FittingView
|
||||||
from gui.statsPane import StatsPane
|
from gui.statsPane import StatsPane
|
||||||
|
|
||||||
class FitMultiSwitch(wx.aui.AuiNotebook):
|
class FitMultiSwitch(wx.Notebook):
|
||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
wx.aui.AuiNotebook.__init__(self, parent, wx.ID_ANY)
|
wx.Notebook.__init__(self, parent, wx.ID_ANY)
|
||||||
|
|
||||||
self.closeButtonActiveflag = self.GetWindowStyleFlag()
|
|
||||||
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.AddPage(wx.Panel(self), "+")
|
||||||
self.SetBackgroundColour(parent.GetBackgroundColour())
|
|
||||||
|
|
||||||
def AddTab(self):
|
def AddTab(self):
|
||||||
p = wx.Panel(self)
|
p = wx.Panel(self)
|
||||||
|
|||||||
Reference in New Issue
Block a user