-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add get_child_by_id and get_widget_by_id #1146
Conversation
darrenburns
commented
Nov 9, 2022
•
edited
Loading
edited
- Maintains dict of ID -> Widget inside the NodeList for quick access children by ID
- Removes DOMNode.get_child
- Removes App.get_child
- Adds Widget.get_child_by_id
- Adds App.get_child_by_id (delegates to self.screen.get_child_by_id)
- Adds Widget.get_widget_by_id
- Adds App.get_widget_by_id (delegates to self.screen.get_widget_by_id)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted an potential issue with duplicate IDs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The get_widget_by_id
may be more complicated than in appears...
@darrenburns Could you do a quick pass on this one next change you get. |