mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge pull request #1226 from davep/use-new-screen-approach
Update the 5x5 example to make use of callable screens
This commit is contained in:
@@ -311,7 +311,7 @@ class FiveByFive(App[None]):
|
|||||||
CSS_PATH = "five_by_five.css"
|
CSS_PATH = "five_by_five.css"
|
||||||
"""The name of the stylesheet for the app."""
|
"""The name of the stylesheet for the app."""
|
||||||
|
|
||||||
SCREENS = {"help": Help()}
|
SCREENS = {"help": Help}
|
||||||
"""The pre-loaded screens for the application."""
|
"""The pre-loaded screens for the application."""
|
||||||
|
|
||||||
BINDINGS = [("ctrl+d", "toggle_dark", "Toggle Dark Mode")]
|
BINDINGS = [("ctrl+d", "toggle_dark", "Toggle Dark Mode")]
|
||||||
|
|||||||
Reference in New Issue
Block a user