This commit is contained in:
2025-08-20 17:10:28 +08:00
parent c451fdf0e5
commit 854a2b5c91
3 changed files with 26 additions and 13 deletions

View File

@@ -14,8 +14,9 @@ FONT_FAMILY = "微软雅黑"
indexMap = {6: "A. ", 7: "B. ", 8: "C. ", 9: "D. "}
# 全局
bottom_options = ["全部的题", "未做过的题", "错过的题", ]
instructions = f"""后面的选项仅在'{bottom_options[0]}'未被勾选时起效"""
bottom_options = ["未做过的题", "错过的题", ]
instructions = f"""第二行啥也不选就是不过滤,全部的题
题目是加权平均抽取默认权重为3对一次减1错一次加2."""
# 样式
# 创建字体

View File

@@ -30,7 +30,7 @@ class Page1:
self.bottom_vars = []
for option in bottom_options:
var = tk.BooleanVar(value=True)
var = tk.BooleanVar(value=False)
chk = ttk.Checkbutton(self.bottom_frame, text=option, variable=var, style="Custom.TCheckbutton")
chk.pack(side=tk.LEFT, padx=20)
self.bottom_vars.append(var)
@@ -71,7 +71,7 @@ class Page1:
if __name__ == "__main__":
top_options = ["1", "2", "3", "4"]
bottom_options = ["全部的题", "未做过的题", "错过的题", ]
bottom_options = ["未做过的题", "错过的题", ]
root = tk.Tk()
app = Page1(root, top_options, bottom_options)