Plugins/ViewManagerPlugins/Tabview/Tabview.py

branch
maintenance
changeset 6056
bfc5153d0224
parent 6048
82ad8ec9548c
child 6097
bf18415da0c7
equal deleted inserted replaced
6054:3397c9428731 6056:bfc5153d0224
879 @param noName name to be used for an unnamed editor (string) 879 @param noName name to be used for an unnamed editor (string)
880 @param addNext flag indicating to add the view next to the current 880 @param addNext flag indicating to add the view next to the current
881 view (bool) 881 view (bool)
882 """ 882 """
883 editor = win.getEditor() 883 editor = win.getEditor()
884 if fn is None: 884 if not fn:
885 if not noName: 885 if not noName:
886 self.untitledCount += 1 886 self.untitledCount += 1
887 noName = self.tr("Untitled {0}").format(self.untitledCount) 887 noName = self.tr("Untitled {0}").format(self.untitledCount)
888 if addNext: 888 if addNext:
889 index = self.currentTabWidget.currentIndex() + 1 889 index = self.currentTabWidget.currentIndex() + 1

eric ide

mercurial