mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
15 lines
295 B
Python
15 lines
295 B
Python
from textual.app import App, ComposeResult
|
|
from textual.widgets import Button
|
|
|
|
|
|
class ButtonsApp(App):
|
|
def compose(self) -> ComposeResult:
|
|
yield Button("Paul")
|
|
yield Button("Duncan")
|
|
yield Button("Chani")
|
|
|
|
|
|
app = ButtonsApp()
|
|
if __name__ == "__main__":
|
|
app.run()
|