示例#1
0
 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")
示例#2
0
 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()