Files
mesh-network-project/desktop_app/ui/widgets/chat_window.py

16 lines
445 B
Python
Raw Normal View History

2026-03-08 07:40:27 +11:00
from textual.containers import Vertical, VerticalScroll, HorizontalGroup
from textual.widgets import Input, Button, Static
class Message(Static):
def __init__(self, message):
super().__init__()
class ChatWindow(Vertical):
def compose(self):
with VerticalScroll():
pass
with HorizontalGroup():
yield Input(placeholder="Send a message")
yield Button("", flat=True)