from textual.widgets import ( Label, ) from textual.widget import Widget class Finished(Widget): def __init__(self, *children: Widget, alia = "", name: str | None = None, id: str | None = None, classes: str | None = None, disabled: bool = False, markup: bool = True) -> None: self.alia = alia super().__init__(*children, name=name, id=id, classes=classes, disabled=disabled, markup=markup) def compose(self): yield Label("本次记忆进程结束, 下次再会!", id="finished_msg")