fix(interface): 修复按钮标识和一个哈希问题

This commit is contained in:
2026-01-15 12:49:57 +08:00
parent bcb198f4d4
commit 1077fcab39
10 changed files with 12 additions and 259 deletions

View File

@@ -152,7 +152,7 @@ class MCQPuzzle(BasePuzzleWidget):
for option in current_options:
button_id = f"sel{str(self.cursor).zfill(3)}-{hash(option)}"
if button_id not in self.hashmap:
self.hashmap[button_id] = option
self.hashmap[button_id[7:]] = option
new_button = Button(option, id=button_id)
container.mount(new_button)