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

@@ -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)