def select_format(self, filename): """Selects format file by filename.""" if cfg.curr_format_file == filename: return cfg.curr_format_file = filename cfg.update_format() self.mainwindow.reload() self.mainwindow.show_status_message("Format of file is changed")
def on_change_file_format(self): """Handle change format action - display dialog.""" dialog = ChangeISTDialog(self.parent) if dialog.exec_(): cfg.update_format() cfg.main_window.reload()