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:
Dave Pearson
2022-11-18 13:43:27 +00:00
parent ccabbf01a3
commit 50860b98b6

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