mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Example app showing input
This commit is contained in:
13
docs/examples/widgets/input.py
Normal file
13
docs/examples/widgets/input.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from textual.app import App, ComposeResult
|
||||
from textual.widgets import Input
|
||||
|
||||
|
||||
class InputApp(App):
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Input(placeholder="First Name")
|
||||
yield Input(placeholder="Last Name")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app = InputApp()
|
||||
app.run()
|
||||
Reference in New Issue
Block a user