Textual

Textual – Logging to File and to Textual Console

When you are developing a user interface, it can be valuable to have a log of what’s going on. Creating a log in Textual, a text-based user interface, is even easier than creating one for wxPython or Tkinter. Why? Well, because Textual includes a logger that is compatible with Python’s own logging module, so it’s […]

Textual – Logging to File and to Textual Console Read More »

Creating a Simple XML Editor in Your Terminal with Python and Textual

Several years ago, I created an XML editor with the wxPython GUI toolkit called Boomslang. I recently thought it would be fun to port that code to Textual so I could have an XML viewer and editor in my terminal as well. In this article, you will learn how that experiment went and see the

Creating a Simple XML Editor in Your Terminal with Python and Textual Read More »

Creating TUI Applications with Textual and Python is Released

Learn how to create text-based user interfaces (TUIs) using Python and the amazing Textual package. Textual is a rapid application development framework for your terminal or web browser. You can build complex, sophisticated applications in your terminal. While terminal applications are text-based rather than pixel-based, they still provide fantastic user interfaces. The Textual package allows

Creating TUI Applications with Textual and Python is Released Read More »

Creating TUI Applications with Textual and Python Kickstarter Launched

Text-based user interfaces (TUIs) are making a BIG comeback. Many developers of today need to easy-to-use applications to configure and run jobs on headless servers. You can make your own life and the lives of your team so much easier by learning how to create a TUI yourself. Textual is a rapid application development framework

Creating TUI Applications with Textual and Python Kickstarter Launched Read More »

Textual – How to Add Widgets to a Container

Textual is an excellent Python package for creating beautiful user interfaces in your terminal. By default, Textual will arrange your widgets starting at the top of the screen and appending them in a vertically oriented stack. Each GUI or TUI toolkit provides a way to lay out your widgets. Textual is no different in this

Textual – How to Add Widgets to a Container Read More »

Textual – Switching Screens in Your Terminal

The Screen is a container for your widgets. These screens occupy the dimensions of your terminal by default. While you can have many different screens in a single application, only one screen may be active at a time. When you create your App class, Textual will create a screen object implicitly. Yes, Textual requires you to have at

Textual – Switching Screens in Your Terminal Read More »

How to Debug Your Textual Application

Textual is a great Python package for creating a lightweight, powerful, text-based user interface. That means you can create a GUI in your terminal with Python without learning curses! But what happens when you encounter some problems that require debugging your application? A TUI takes over your terminal, which means you cannot see anything from

How to Debug Your Textual Application Read More »

ANN – The textual-cogs Package – Creating Reusable Dialogs for Textual

Textual-cogs is a collection of Textual dialogs that you can use in your Textual application. You can see a quick demo of the dialogs below: Dialogs included so far: Generic MessageDialog – shows messages to the user SaveFileDialog – gives the user a way to select a location to save a file SingleChoiceDialog – gives the user a series

ANN – The textual-cogs Package – Creating Reusable Dialogs for Textual Read More »

Textual – The New MaskedInput Widget

Textual v0.80.0 was released today, and it included the brand-new MaskedInput widget. If you have used other GUI toolkits, such as wxPython, you might already be familiar with a masked input widget. These widgets allow you to control the user’s input based on a mask string that the developer provides when instantiating the widget. Let’s spend

Textual – The New MaskedInput Widget Read More »

How to Plot in the Terminal with Python and Textualize

Have you ever wanted to create a plot or graph in your terminal? Okay, maybe you haven’t, but now that you know you can, you want to! Python has the plotext package for plotting in your terminal. However, while that package is amazing all on its own, there is another package called textual-plotext that wraps

How to Plot in the Terminal with Python and Textualize Read More »

Creating Progress Bars in Your Terminal with Python and Textual

The Textual package is a great way to create GUI-like applications with Python in your terminal. These are known as text-based user interfaces or TUIs. Textual has many different widgets built-in to the framework. One of those widgets is the ProgressBar. If you need to show the progress of a download or long-running process, then

Creating Progress Bars in Your Terminal with Python and Textual Read More »