mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
app basics and doc structure
This commit is contained in:
14
docs/examples/app/return.py
Normal file
14
docs/examples/app/return.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user