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

Method menu_save_clicked

editor/editor.py:1065–1079  ·  view source on GitHub ↗
(self, widget, path="")

Source from the content-addressed store, hash-verified

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
1067 for drag_helper in self.drag_helpers:
1068 drag_helper.setup(None, None)
1069 if len(path):
1070 self.projectPathFilename = path + '/' + \
1071 self.fileSaveAsDialog.get_fileinput_value()
1072 else:
1073 if not len(self.projectPathFilename):
1074 self.fileSaveAsDialog.confirm_value.do(self.menu_save_clicked)
1075 self.fileSaveAsDialog.show()
1076 return
1077
1078 self.remove_box_shadow_selected_widget()
1079 self.project.save(self.projectPathFilename, self.projectConfiguration)
1080
1081 def menu_save_widget_clicked(self, widget, path=""):
1082 """ This method allows to export the selected widget

Callers

nothing calls this directly

Calls 6

get_fileinput_valueMethod · 0.80
saveMethod · 0.80
setupMethod · 0.45
doMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected