The Python Papers

The Python Papers

How to Dock Widgets in Textual

Mike Driscoll's avatar
Mike Driscoll
Sep 17, 2026
∙ Paid

Textual is a Python package for creating beautiful terminal-based graphical interfaces.

Textual widgets support docking. When you dock a widget, the widget is removed from the layout and fixed in a static location. You can dock a widget to the following four positions:

  • top

  • right

  • bottom

  • left

A docked widget will not scroll out of view like widgets that are ins…

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