tkinter-checkbox 发表于 2020-09-19 更新于 2021-04-09 分类于 Language 阅读次数: 本文字数: 187 阅读时长 ≈ 1 分钟 self.chkProgMode = tk.IntVar()tk.Checkbutton(topFrame2, text="设计模式", variable=self.chkProgMode, command=self.on_chk_ProgMode).pack(side=tk.LEFT, padx=4)# 默认选择self.chkProgMode.set(True)