def addTab(self, widget, featureClass, featureWidgets, checkStatus=True):
        qt.QTabWidget.addTab(self, widget, featureClass)

        checkBox = FeatureWidgetHelperLib.FeatureWidget()
        checkBox.Setup(featureName=featureClass, featureClassFlag=True, checkStatus=checkStatus)
        self.featureClassFeatureWidgets[featureClass] = checkBox

        self.tab_bar.setTabButton(self.tab_bar.count - 1, qt.QTabBar.LeftSide, checkBox)
        self.connect(checkBox, qt.SIGNAL('stateChanged(int)'),
                     lambda checkState: self.stateChanged(checkBox, checkState, featureWidgets))
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/CIP_LesionModel/FeatureWidgetHelperLib/FeatureWidgets.py/CheckableTabsWidget.addTab/original