15 lines
296 B
Python
15 lines
296 B
Python
from textual.app import App, ComposeResult
|
|
from textual.widgets import Welcome
|
|
|
|
|
|
class WelcomeApp(App):
|
|
def compose(self) -> ComposeResult:
|
|
yield Welcome()
|
|
|
|
def on_button_pressed(self) -> None:
|
|
self.exit()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app = WelcomeApp()
|
|
app.run()
|