Readd close code at the correct place
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
import wx
|
import wx
|
||||||
import gui.chromeTabs
|
import gui.chromeTabs
|
||||||
|
import gui.mainFrame
|
||||||
|
|
||||||
class MultiSwitch(gui.chromeTabs.PFNotebook):
|
class MultiSwitch(gui.chromeTabs.PFNotebook):
|
||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
@@ -45,6 +46,12 @@ class MultiSwitch(gui.chromeTabs.PFNotebook):
|
|||||||
gui.chromeTabs.PFNotebook.AddPage(self, tabWnd, tabTitle, tabImage, True)
|
gui.chromeTabs.PFNotebook.AddPage(self, tabWnd, tabTitle, tabImage, True)
|
||||||
|
|
||||||
|
|
||||||
|
def DeletePage(self, n):
|
||||||
|
if self.GetPageCount() > 1:
|
||||||
|
gui.chromeTabs.PFNotebook.DeletePage(self, n)
|
||||||
|
else:
|
||||||
|
gui.mainFrame.MainFrame.getInstance().Close()
|
||||||
|
|
||||||
class TabSpawner(object):
|
class TabSpawner(object):
|
||||||
tabTypes = []
|
tabTypes = []
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user