Fit add when no tabs available bug fix (create an empty tab first or we will end up with orphan fittingviews) / little cleanup in mainframe.py / added GetPageCount method to PFNotebook
This commit is contained in:
@@ -147,6 +147,9 @@ class PFNotebook(wx.Panel):
|
||||
def GetCurrentPage(self):
|
||||
return self.activePage
|
||||
|
||||
def GetPageCount(self):
|
||||
return len(self.pages)
|
||||
|
||||
def AddPage(self, tabWnd, tabTitle ="Empty Tab", tabImage = None, showClose = True):
|
||||
if self.activePage:
|
||||
self.activePage.Hide()
|
||||
|
||||
Reference in New Issue
Block a user