def setTabBusy(self, state):
        self.fileSelectorList.setEnabled(not state)
        for i in range(self.ribbon.count()):
            enabled = not state
            if i == self.ribbon.currentTabNumber:
                enabled = True
            self.ribbon.setTabEnabled(i, enabled)
        if self.labelWidget is not None:
            self.labelWidget.labelWidget.setEnabled(not state)
dataset/ETHPy150Open ilastik/ilastik-0.5/ilastik/ilastikMain.py/MainWindow.setTabBusy/original