From d45c054b453867d5d3f6005507c41c1a91f2a588 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Thu, 14 Nov 2019 14:02:48 -0500 Subject: [PATCH] Default value for combobox bug - was checking bool instead of checking for None --- PySimpleGUI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index cbea2b7d..195eca95 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -version = __version__ = "4.6.0.4 Unreleased - Added border to Graph.draw_rectangle, Image.Update data parm can be tk.PhotoImage obj, more PEP8 bindings for Element, Slider trough color fix" +version = __version__ = "4.6.0.5 Unreleased - Added border to Graph.draw_rectangle, Image.Update data parm can be tk.PhotoImage obj, more PEP8 bindings for Element, Slider trough color fix, look and feel previewer, fix for combo default" # 888888ba .d88888b oo dP .88888. dP dP dP @@ -8110,7 +8110,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form): element.TKCombo.pack(side=tk.LEFT, padx=elementpad[0], pady=elementpad[1]) if element.Visible is False: element.TKCombo.pack_forget() - if element.DefaultValue: + if element.DefaultValue is not None: for i, v in enumerate(element.Values): if v == element.DefaultValue: element.TKCombo.current(i)