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:
Dave Pearson
2022-11-18 14:37:12 +00:00
committed by GitHub

View File

@@ -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")]