From ad610e61cd1cea83bfe7a19cc047579510f40762 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Tue, 4 Oct 2022 15:30:53 +0100 Subject: [PATCH] Example app showing input --- docs/examples/widgets/input.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/examples/widgets/input.py diff --git a/docs/examples/widgets/input.py b/docs/examples/widgets/input.py new file mode 100644 index 000000000..3b315c571 --- /dev/null +++ b/docs/examples/widgets/input.py @@ -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()