Revert "Revert "Revert "rm -rf pyfa on ctrl+w"""

This reverts commit c5186d9c75.
This commit is contained in:
cncfanatics
2010-11-23 08:59:35 +01:00
parent 0a90fe9a17
commit d60f85db0d
3 changed files with 4 additions and 14 deletions

View File

@@ -23,7 +23,7 @@ import gui.chromeTabs
class MultiSwitch(gui.chromeTabs.PFNotebook):
def __init__(self, parent):
gui.chromeTabs.PFNotebook.__init__(self, parent)
self.AddPage(showClose = False)
self.AddPage()
self.handlers = handlers = []
for type in TabSpawner.tabTypes:
handlers.append(type(self))
@@ -37,12 +37,12 @@ class MultiSwitch(gui.chromeTabs.PFNotebook):
if h:
h(type, info)
def AddPage(self, tabWnd=None, tabTitle="Empty Tab", tabImage=None, showClose = True):
def AddPage(self, tabWnd=None, tabTitle="Empty Tab", tabImage=None):
if tabWnd is None:
tabWnd = wx.Panel(self, size=(0, 0))
tabWnd.handleDrag = lambda type, info: self.handleDrag(type, info, False)
gui.chromeTabs.PFNotebook.AddPage(self, tabWnd, tabTitle, tabImage, showClose)
gui.chromeTabs.PFNotebook.AddPage(self, tabWnd, tabTitle, tabImage, True)
class TabSpawner(object):