ok
This commit is contained in:
@@ -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."""
|
||||
|
||||
# 样式
|
||||
# 创建字体
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user