LLMtest1/text.py
2023-11-20 19:55:08 +01:00

17 lines
611 B
Python

from textual.app import App, ComposeResult
from textual.widgets import TabbedContent, TabPane, TextArea
class SimpleCLITool(App):
def compose(self) -> ComposeResult:
# Create TabbedContent with two tabs
yield TabbedContent() as tc:
# First Tab
with TabPane("First Tab"):
yield TextArea("This is the content of the first tab. " * 10, auto_width=True)
# Second Tab
with TabPane("Second Tab"):
yield TextArea("This is the content of the second tab. " * 10, auto_width=True)
SimpleCLITool.run(log="textual.log")