ttt
Main application.
Classes⚓︎
TuiTyperTutor ⚓︎
Bases: App
Main Application.
Source code in tui_typer_tutor/app/ttt.py
class TuiTyperTutor(App): # type: ignore[type-arg]
"""Main Application."""
TITLE = 'TUI Typer Tutor'
BINDINGS: ClassVar[list[Binding]] = [ # type: ignore[assignment]
Binding('ctrl+backslash', 'show_help', 'Help'),
]
def on_mount(self) -> None:
"""Set up the application after the DOM is ready."""
self.push_screen(Main())
def action_show_help(self) -> None:
"""Action to display the help dialog."""
self.push_screen(Help())
Functions⚓︎
action_show_help ⚓︎
action_show_help()
Action to display the help dialog.
Source code in tui_typer_tutor/app/ttt.py
def action_show_help(self) -> None:
"""Action to display the help dialog."""
self.push_screen(Help())
on_mount ⚓︎
on_mount()
Set up the application after the DOM is ready.
Source code in tui_typer_tutor/app/ttt.py
def on_mount(self) -> None:
"""Set up the application after the DOM is ready."""
self.push_screen(Main())