This commit is contained in:
2025-11-10 03:33:48 +08:00
parent 0a0fb73e52
commit 1e80eb643e

View File

@@ -34,16 +34,15 @@ class MemScreen(Screen):
def current_widget(self):
self.fission = Fission(self.procession.current_atom, self.phaser.state)
puzzle_info = next(self.fission.generate())
#print(puzzle_info)
#print(shim.puzzle2widget[puzzle_info["puzzle"]])
print(puzzle_info)
return shim.puzzle2widget[puzzle_info["puzzle"]](atom = self.procession.current_atom, alia = puzzle_info["alia"])
#print(shim.puzzle2widget[puzzle_info["puzzle"]])
def compose(self) -> ComposeResult:
yield Header(show_clock=True)
with Center():
yield Static(f"当前进度: {self.procession.process()}/{self.procession.total_length()}")
self.mount(self.current_widget())
#self.mount(self.current_widget()) # type: ignore
yield Button("重新学习此单元", id="re-recognize", variant="warning")
yield Footer()