1
0

fix: 改进

This commit is contained in:
2025-12-11 12:36:00 +08:00
parent bd7a28718f
commit d392684a82
5 changed files with 32 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
from textual.widgets import (
Label,
Button,
)
from textual.widget import Widget
@@ -9,4 +10,10 @@ class Finished(Widget):
super().__init__(*children, name=name, id=id, classes=classes, disabled=disabled, markup=markup)
def compose(self):
yield Label("本次记忆进程结束, 下次再会!", id="finished_msg")
yield Label("本次记忆进程结束", id="finished_msg")
yield Button("返回上一级", id="back-to-menu")
def on_button_pressed(self, event):
button_id = event.button.id
if button_id == 'back-to-menu':
self.app.pop_screen()