24 lines
556 B
Python
24 lines
556 B
Python
from textual.app import ComposeResult
|
|
from textual.screen import Screen
|
|
from textual.widgets import Footer, Placeholder
|
|
|
|
from .i18n import t
|
|
from .screen_support import go_back_or_exit
|
|
|
|
|
|
class SettingsScreen(Screen):
|
|
BINDINGS = [
|
|
("escape", "back", t("Back")),
|
|
]
|
|
|
|
def __init__(self):
|
|
super().__init__()
|
|
context = self.app.getContext()
|
|
def compose(self) -> ComposeResult:
|
|
# Row 1
|
|
yield Placeholder(t("Settings Screen"))
|
|
yield Footer()
|
|
|
|
def action_back(self):
|
|
go_back_or_exit(self)
|