Remove intro02.py

It doesn't appear to be referenced anywhere in the docs.
This commit is contained in:
Dave Pearson
2022-10-19 15:12:54 +01:00
parent bd0e1c01b1
commit e8bb084538

View File

@@ -1,29 +0,0 @@
from textual.app import App
class ExampleApp(App):
COLORS = [
"white",
"maroon",
"red",
"purple",
"fuchsia",
"olive",
"yellow",
"navy",
"teal",
"aqua",
]
def on_mount(self):
self.styles.background = "darkblue"
def on_key(self, event):
if event.key.isdigit():
self.styles.background = self.COLORS[int(event.key)]
self.bell()
app = ExampleApp()
app.run()