MCPcopy Index your code
hub / github.com/rawpython/remi / on_open_dialog_confirm

Method on_open_dialog_confirm

editor/editor.py:1052–1063  ·  view source on GitHub ↗
(self, widget, filelist)

Source from the content-addressed store, hash-verified

1050 "There were an error during project load: %s" % traceback.format_exc())
1051
1052 def on_open_dialog_confirm(self, widget, filelist):
1053 if len(filelist):
1054 self.menu_new_clicked(None)
1055 try:
1056 widgetTree = self.project.load(
1057 filelist[0], self.projectConfiguration)
1058 if widgetTree != None:
1059 self.add_widget_to_editor(widgetTree)
1060 self.projectPathFilename = filelist[0]
1061 except Exception:
1062 self.show_error_dialog("ERROR: Unable to load the project",
1063 "There were an error during project load: %s" % traceback.format_exc())
1064
1065 def menu_save_clicked(self, widget, path=""):
1066 # the dragHelper have to be removed

Callers

nothing calls this directly

Calls 4

menu_new_clickedMethod · 0.95
add_widget_to_editorMethod · 0.95
show_error_dialogMethod · 0.95
loadMethod · 0.45

Tested by

no test coverage detected