mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
background logic
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user