mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
new input control
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user