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