尝试使用主题的tk(ttk)检查按钮小部件:
import tkinter as tkfrom tkinter import ttka = tk.Tk()var1 = tk.IntVar()check_btn = ttk.Checkbutton(a, text="checkbutton", variable=var1)check_btn.grid(row=1,sticky='w')# set foreground color to bluecheck_btn_style = ttk.Style()check_btn_style.configure('TCheckbutton', foreground='blue')a.mainloop()


