mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
14 lines
269 B
Python
14 lines
269 B
Python
from textual.app import App
|
|
from textual.widgets import Button, Welcome
|
|
|
|
|
|
class WelcomeApp(App):
|
|
def on_key(self) -> None:
|
|
self.mount(Welcome())
|
|
self.query_one(Button).label = "YES!"
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app = WelcomeApp()
|
|
app.run()
|