期末-全自动艺术评分系统-2

This commit is contained in:
Cat Tom
2025-12-09 16:29:42 +08:00
parent d273a89d42
commit 2399f0056d
+6 -2
View File
@@ -177,13 +177,17 @@ class AutoRatingApp:
piece_id, scores = data
self.rating_system.scores[piece_id] = scores
# 关键修复:添加数据后立即计算有效得分
self.rating_system.auto_calculate()
# 更新表格显示
effective_score = self.rating_system.effective_scores.get(piece_id, "计算中...")
self.tree.insert(
"", "end",
values=(
piece_id,
", ".join(map(str, scores)),
self.rating_system.effective_scores.get(piece_id, "计算中...")
effective_score
)
)
@@ -210,4 +214,4 @@ class AutoRatingApp:
if __name__ == "__main__":
root = tk.Tk()
app = AutoRatingApp(root)
root.mainloop()
root.mainloop()