From a714157d8abea80f9140efe7b81585de2a4d4dd3 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Tue, 7 Apr 2020 19:32:28 -0400 Subject: [PATCH] Incorrectly setting spin DefaultValue variable if not set in Update. --- PySimpleGUI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index c0bb5385..fa6cf04e 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -version = __version__ = "4.18.0.18 Unreleased - Print and MLine.Print fixed sep char handling, popup_get_date, icon parm popup_animated, popup button size (6,1), NEW CALENDAR chooser integrated, Graph.draw_lines, color chooser set parent window, scrollable column scrollwheel fixed, autoscroll parm for Multiline.print, fixed TabGroup border width, EXPERIMENTAL Scrollable Columns, fix for install from GitHub, fix for Column scrolling with comboboxes, Added Text.get" +version = __version__ = "4.18.0.19 Unreleased - Print and MLine.Print fixed sep char handling, popup_get_date, icon parm popup_animated, popup button size (6,1), NEW CALENDAR chooser integrated, Graph.draw_lines, color chooser set parent window, scrollable column scrollwheel fixed, autoscroll parm for Multiline.print, fixed TabGroup border width, EXPERIMENTAL Scrollable Columns, fix for install from GitHub, fix for Column scrolling with comboboxes, Added Text.get, Spin.update fix" port = 'PySimpleGUI' @@ -1986,9 +1986,9 @@ class Spin(Element): if value is not None: try: self.TKStringVar.set(value) + self.DefaultValue = value except: pass - self.DefaultValue = value if disabled is not None: self.TKSpinBox.configure(state='disabled' if disabled else 'normal') # if disabled == True: