16 lines
445 B
Python
16 lines
445 B
Python
|
|
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)
|