def change_child_at_element(wid, prov, child_name): global last_widget if last_widget.type == "element": Aduct.change_child_at_element(last_widget, prov, child_name) elif last_widget.type == "notebook": element = new_element() Aduct.change_child_at_element(element, prov, child_name) Aduct.add_to_notebook(element, last_widget) element.show_all()
def change_child_at_element(wid, prov, child_name): global last_widget Aduct.change_child_at_element(last_widget, prov, child_name)