Skip to content
Discussion options

You must be logged in to vote

This is intentional. There is only every one screen in the DOM (the current screen), for the following reasons:

  • It avoids making changes to widgets you didn't intend.
  • It's faster to query if you don't need to search all the screens.

If you want to get a widget from a specific screen you could pass a reference to the screen instance, or get it via the app with get_screen.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@chnoma
Comment options

@davep
Comment options

Comment options

You must be logged in to vote
1 reply
@chnoma
Comment options

Answer selected by chnoma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2294 on April 16, 2023 06:46.