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

Method menu_cut_selection_clicked

editor/editor.py:1127–1136  ·  view source on GitHub ↗
(self, widget)

Source from the content-addressed store, hash-verified

1125 del self.selectedWidget.style['box-shadow']
1126
1127 def menu_cut_selection_clicked(self, widget):
1128 if self.selectedWidget == self.project:
1129 return
1130 for drag_helper in self.drag_helpers:
1131 drag_helper.setup(None, None)
1132 parent = self.selectedWidget.get_parent()
1133 self.editCuttedWidget = self.selectedWidget
1134 parent.remove_child(self.selectedWidget)
1135 print("tag cutted:" + self.editCuttedWidget.variable_name)
1136 self.on_widget_selection(parent)
1137
1138 def menu_paste_selection_clicked(self, widget):
1139 if self.editCuttedWidget != None:

Callers

nothing calls this directly

Calls 4

on_widget_selectionMethod · 0.95
get_parentMethod · 0.80
setupMethod · 0.45
remove_childMethod · 0.45

Tested by

no test coverage detected