Archived
0
0

refactor: 完成所有基础现代化重构

This commit is contained in:
2025-12-17 22:00:42 +08:00
parent 11786371e5
commit 80fe1180c3
6 changed files with 31 additions and 12 deletions

View File

@@ -66,12 +66,12 @@ class MCQPuzzle(BasePuzzleWidget):
self.alia
]
logger.debug(f"Puzzle Setting: {setting}")
current_options = self.puzzle.options[len(self.inputlist)]
yield Label(setting["primary"], id="sentence")
yield Label(self.puzzle.wording[len(self.inputlist)], id="puzzle")
yield Label(f"当前输入: {self.inputlist}", id="inputpreview")
# 渲染当前问题的选项
current_options = self.puzzle.options[len(self.inputlist)]
with Container(id="btn-container"):
for i in current_options:
self.hashmap[str(hash(i))] = i