Playback speed
×
Share post
Share post at current time
0:00
/
0:00
Transcript

How to Create a Modal Dialog in Your Terminal (Video)

Using Textual and Python

This video tutorial teaches you how to create a modal dialog inside your terminal application or TUI.

Here is the Python code:

And here is the CSS file you will need to style the modal dialog correctly:

If you find this content interesting, you might want to check out my Textual book. It’s only 60% done, but it will teach you all you need to know to start creating your own text-based user interfaces (TUIs):

Get the Book

The Python Papers is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.