Skip to content

textual_enhanced.screen

A Textual screen, with tweaks.

EnhancedScreen

Bases: Generic[ScreenResultType], Screen[ScreenResultType]

A Textual screen with some extras.

action_change_theme_command

action_change_theme_command()

Show the Textual theme picker command palette.

action_help_command

action_help_command()

Show the help screen.

Rather than use Textual's own help facility, this shows my own help screen.

busy_looking

busy_looking(selector)

Provides a context that makes a widget look busy.

A simple helper that turns this:

self.query_one(Display).loading = True
self.do_something_that_takes_a_moment()
self.query_one(Display).loading = False

into this:

with self.busy_looking(Display):
    self.do_something_that_takes_a_moment()

show_palette

show_palette(provider)

Show a particular command palette.

Parameters:

Name Type Description Default

provider

type[CommandsProvider]

The commands provider for the palette.

required