The Python Papers

The Python Papers

Textual – How to Add Widgets to a Container (Part II)

Horizontal layouts and built-in containers

Mike Driscoll's avatar
Mike Driscoll
May 12, 2025
∙ Paid

Last week, you learned how to create a vertical layout in a TUI using Python and Textual. You used straight Python code for your layout and then you switched to a mixture of CSS and Python.

This week, you will continue your Textual layout journey and learn about horizontal layouts and some of Textual’’s built-in containers.

Let’s get started!

Horizontal La…

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