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

Method toolbar_delete_clicked

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

Source from the content-addressed store, hash-verified

1164 self.projectConfiguration.show(self)
1165
1166 def toolbar_delete_clicked(self, widget):
1167 if self.selectedWidget == self.project:
1168 return
1169 for drag_helper in self.drag_helpers:
1170 drag_helper.setup(None, None)
1171 parent = self.selectedWidget.get_parent()
1172 parent.remove_child(self.selectedWidget)
1173 todel = self.selectedWidget
1174 self.on_widget_selection(parent)
1175 del todel
1176 print("tag deleted")
1177
1178 def move_widget(self, css_key, value):
1179 # css_key can be 'top' or 'left'

Callers 1

onkeydownMethod · 0.95

Calls 4

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

Tested by

no test coverage detected