The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
|
|
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()
|