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:
HomeWorld
2010-11-20 21:05:01 +02:00
parent c730e59840
commit afed4daf67
3 changed files with 7 additions and 8 deletions

View File

@@ -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()