background logic

This commit is contained in:
Will McGugan
2022-08-19 17:51:30 +01:00
parent b3feec1ef9
commit 5d8fafc74d
4 changed files with 10 additions and 12 deletions

View File

@@ -22,6 +22,7 @@ class ExampleApp(App):
def on_key(self, event):
if event.key.isdigit():
self.styles.background = self.COLORS[int(event.key)]
self.refresh()
self.bell()