def addTab(self, tabObject=None, Name=None): newTab = GraphTab() SmartTabWidget.addTab(self, newTab) self.currentChanged.connect(self.drawCurrentGraph)
def __init__(self, parent=None): SmartTabWidget.__init__(self, parent) self.defaultTabName = 'Graph'