def __init__(self): super(LoadResultsTool, self).__init__("Load results manually", "tools/load_manually", resourceIcon("ide/table_import")) self.__import_widget = None self.__dialog = None self.setEnabled(LoadResultsModel.isValidRunPath())
def toggleAdvancedMode(self, advanced_mode): self.setVisible(advanced_mode) if not LoadResultsModel.isValidRunPath(): self.setEnabled(False)