Merge pull request #2189 from PySimpleGUI/Dev-latest

Default value for combobox bug - was checking bool instead of checkin…
This commit is contained in:
PySimpleGUI 2019-11-14 14:03:10 -05:00 committed by GitHub
commit a7a5f0dc25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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)