From 6b79ea988d78a513ef14bb7f5f3cbe4f154ff5ce Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Mon, 10 Sep 2018 16:56:56 -0400 Subject: [PATCH] Another missed and element.BackgroundColor != COLOR_SYSTEM_DEFAULT --- PySimpleGUI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 4ee4e4cb..0c3dfb2c 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -2445,7 +2445,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form): element.TKCheckbutton = tk.Checkbutton(tk_row_frame, anchor=tk.NW, text=element.Text, width=width, variable=element.TKIntVar, bd=border_depth, font=font) if default_value is None: element.TKCheckbutton.configure(state='disable') - if element.BackgroundColor is not None: + if element.BackgroundColor is not None and element.BackgroundColor != COLOR_SYSTEM_DEFAULT: element.TKCheckbutton.configure(background=element.BackgroundColor) element.TKCheckbutton.configure(selectcolor=element.BackgroundColor) if text_color is not None and text_color != COLOR_SYSTEM_DEFAULT: