Minor tweaks per PR review

This commit is contained in:
blitzmann
2020-06-20 14:59:49 -04:00
parent e4e49cef54
commit 413bc5d46c
2 changed files with 5 additions and 3 deletions

View File

@@ -37,7 +37,8 @@ class MultiSwitch(ChromeNotebook):
if h:
h(type, info)
def AddPage(self, tabWnd=None, tabTitle="Empty Tab", tabImage=None):
def AddPage(self, tabWnd=None, tabTitle=None, tabImage=None):
tabTitle = tabTitle or _("Empty Tab")
if tabWnd is None:
tabWnd = gui.builtinViews.emptyView.BlankPage(self)
tabWnd.handleDrag = lambda type, info: self.handleDrag(type, info)