From 83f92f926a34dbdfbeeab60796480db8ad43817b Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Tue, 17 Dec 2024 11:45:57 +0000 Subject: [PATCH] Clarify --- docs/guide/queries.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/queries.md b/docs/guide/queries.md index b71790f68..ea64b64d5 100644 --- a/docs/guide/queries.md +++ b/docs/guide/queries.md @@ -41,7 +41,7 @@ For instance, the following would return a `Button` instance (assuming there is my_button = self.query_one(Button) ``` -`query_one` searches *below* the widget it is called on, so if you call `query_one` on a widget, it will only find widgets that are descendants of that widget. +`query_one` searches the DOM *below* the widget it is called on, so if you call `query_one` on a widget, it will only find widgets that are descendants of that widget. If you wish to search the entire DOM, you should call `query_one` on the `App` or `Screen` instance.