Textual: Modern Text User Interface Framework

8.2.0 · active · verified Sat Mar 28

Textual is a Python framework for building sophisticated user interfaces with a simple API. The current version is 8.2.0, released on March 27, 2026. It follows a regular release cadence, with updates approximately every few weeks.

Warnings

Install

Imports

Quickstart

A minimal Textual application with a header, footer, and placeholder.

import os
from textual.app import App
from textual.widgets import Header, Footer, Placeholder

class MyApp(App):
    async def on_mount(self) -> None:
        self.set_interval(1, self.update)

    async def update(self) -> None:
        pass

    async def on_resize(self, width: int, height: int) -> None:
        pass

if __name__ == '__main__':
    app = MyApp()
    app.run()

view raw JSON →