How to access widget using their id
property?
#2134
bin-san
started this conversation in
Debugging help
Replies: 2 comments 1 reply
-
Is this feature implemented in toga yet? |
Beta Was this translation helpful? Give feedback.
0 replies
-
However, to be clear: "saving the widget in some kind of variable" is... programming. While ID-based lookup can be convenient in some situations, and is necessary for complex meta-programming cases, for simple apps, storing the widgets you're using as variables is good programming practice, not something to be avoided. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Was not able to find a way to use the
id
property to access the widget. Each time when I do need access to widget, I must save the widget in some kind of variable. I want some feature like "document.getElementById" of Javascript.I dont know if it is implemented or not...
Beta Was this translation helpful? Give feedback.
All reactions