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