widgets
change_widget(root_widget, address, sub_widget)
Substitutes a sub_widget in a root_widget. Address is a sequence of childhood ranks as a string, root_widget first child address is '0' The root_widget is altered but the object remains the same
Source code in src/antakia/gui/widgets.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
|
check_address(root_widget, address)
For debug purposes : check if the address is reachable and returns the widget class
Source code in src/antakia/gui/widgets.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
get_widget(root_widget, address)
Returns a sub widget of root_widget. Address is a sequence of childhood ranks as a string Return sub_widget may be modified, it's still the same sub_widget of the root_widget get_widget(root_widget, '0') returns root_widgetn first child TODO : allow childhood rank > 9
Source code in src/antakia/gui/widgets.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|