The Python Papers

The Python Papers

Textual - An Intro to DOM Queries (Part I)

Mike Driscoll's avatar
Mike Driscoll
Mar 31, 2026
∙ Paid

In this article, you will learn how to query the DOM in Textual. You will discover that the DOM keeps track of all the widgets in your application. By running queries against the DOM, you can find widgets quickly and update them, too.

You will be learning the following topics related to the DOM:

  • The query one method

  • Textual queries

You will learn more in th…

User's avatar

Continue reading this post for free, courtesy of Mike Driscoll.

Or purchase a paid subscription.
© 2026 Mike Driscoll · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture