def edit_format(self): """Open selected format file in Json Editor""" text = cfg.get_curr_format_text() if text is not None: dlg = JsonEditorDlg(cfg.format_dir, cfg.curr_format_file, "Format", text, self.mainwindow) dlg.exec_()
def edit_transformation_file(self, file): """edit transformation rules in file""" text = cfg.get_transformation_text(file) if text is not None: dlg = JsonEditorDlg(cfg.transformation_dir, file, "Transformation rules:", text, self.mainwindow) dlg.exec_()