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

Method remove_child

remi/gui.py:2099–2110  ·  view source on GitHub ↗
(self, widget)

Source from the content-addressed store, hash-verified

2097 self.on_tab_selection(None, self.selected_widget_key)
2098
2099 def remove_child(self, widget):
2100 key = None
2101 for k in self.children.keys():
2102 if hasattr(self.children[k], "identifier"):
2103 if self.children[k].identifier == widget.identifier:
2104 key = k
2105 break
2106 if key:
2107 self.tab_keys_ordered_list.remove(key)
2108 self.container_tab_titles.remove_child(self.container_tab_titles.children[key])
2109 self.resize_tab_titles()
2110 super(TabBox, self).remove_child(widget)
2111
2112 @decorate_set_on_listener("(self, emitter, key)")
2113 @decorate_event

Callers

nothing calls this directly

Calls 2

resize_tab_titlesMethod · 0.95
remove_childMethod · 0.45

Tested by

no test coverage detected