Closed orztrickster closed 4 months ago
Just use
fg_color = "green" #enter color
That's the same, just changes the color of the selection.
checkbox = customtkinter.CTkCheckBox(frame[3], text="test", command=checkbox_event_1, variable=check_var_1, onvalue="on", offvalue="off",fg_color = "green")
checkbox.grid(row=0, column=0, padx=(550,5), pady=(0,30))
try this:
bg_color = "green" #enter color
checkbox = customtkinter.CTkCheckBox(frame[3], text="test", command=checkbox_event_1, variable=check_var_1, onvalue="on", offvalue="off", bg_color = "green")
Thank you, this works. Setting bg_color = "#2b2b2b" will make it the same as the background.
checkbox = customtkinter.CTkCheckBox(frame[3], text="test", command=checkbox_event_1, variable=check_var_1, onvalue="on", offvalue="off", bg_color = "green")
checkbox = customtkinter.CTkCheckBox(frame[3], text="test", command=checkbox_event_1, variable=check_var_1, onvalue="on", offvalue="off", bg_color = "#2b2b2b")
How to set the background color of customtkinter.CTkCheckBox? You can see that there is a darker area behind "test".
checkbox = customtkinter.CTkCheckBox(frame[3], text="test", command=checkbox_event_1, variable=check_var_1, onvalue="on", offvalue="off")