more docs and diagrams

This commit is contained in:
Will McGugan
2022-09-14 17:09:38 +01:00
parent e85f9dc045
commit 9816c2643f
14 changed files with 436 additions and 51 deletions

View File

@@ -18,11 +18,11 @@ class EventApp(App):
]
def on_mount(self) -> None:
self.styles.background = "darkblue"
self.screen.styles.background = "darkblue"
def on_key(self, event: events.Key) -> None:
if event.key.isdecimal():
self.styles.background = self.COLORS[int(event.key)]
self.screen.styles.background = self.COLORS[int(event.key)]
app = EventApp()