Merge pull request #2790 from PySimpleGUI/Dev-latest
Incorrectly setting spin DefaultValue variable if not set in Update.
This commit is contained in:
commit
4e15162a6f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue