mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
20 lines
301 B
Python
20 lines
301 B
Python
from textual.app import App
|
|
from textual.widgets import Input
|
|
|
|
|
|
class InputApp(App):
|
|
|
|
CSS = """
|
|
Input {
|
|
width: 20;
|
|
}
|
|
"""
|
|
|
|
def compose(self):
|
|
yield Input("你123456789界", placeholder="Type something")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app = InputApp()
|
|
app.run()
|