new input control

This commit is contained in:
Will McGugan
2022-09-28 12:24:28 +01:00
parent effd6211d3
commit 72e59aad26
7 changed files with 31 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
from textual.app import App
from textual.widgets import TextInput
from textual.widgets import Input
class InputApp(App):
@@ -11,7 +11,9 @@ class InputApp(App):
"""
def compose(self):
yield TextInput(initial="foo")
yield Input("foo")
app = InputApp()
if __name__ == "__main__":
app = InputApp()
app.run()