From 61fc824625e992274deab76bdeaf5c97d897591d Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 3 Aug 2020 14:05:53 -0400 Subject: [PATCH] Fix for background color not set when combo is readonly --- PySimpleGUI.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index ab0d06a8..7cd7d533 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -version = __version__ = "4.27.4.2 Unreleased\nAdded setting of combobox button color to be theme's button color, spin arrow color set to background color of spin, fix for error popup when bad key (thanks Ruud!)" +version = __version__ = "4.27.4.3 Unreleased\nAdded setting of combobox button color to be theme's button color, spin arrow color set to background color of spin, fix for error popup when bad key (thanks Ruud!), fixed background color for combo when readonly" port = 'PySimpleGUI' @@ -11337,6 +11337,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form): # Set individual widget options combostyle.configure(style_name, foreground=element.TextColor) combostyle.configure(style_name, selectbackground=element.BackgroundColor) + combostyle.map(style_name, fieldbackground=[('readonly', element.BackgroundColor)]) combostyle.configure(style_name, fieldbackground=element.BackgroundColor) combostyle.configure(style_name, selectforeground=element.TextColor) @@ -17200,6 +17201,7 @@ def main(): # theme('dark blue 3') # theme('dark brown 2') + # theme('dark') # theme('dark red') # theme('Light Green 6') ver = version.split('\n')[0]