From 4a048efdb0e20df3c047f35fca2788aa221407ef Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 13 Jan 2020 16:10:23 -0500 Subject: [PATCH] Fix for Multline update with no value parameter specified --- PySimpleGUI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 8a6d6bbf..ad1e4fa1 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -version = __version__ = "4.15.1.1 Unreleased - Fix for draw_pixel" +version = __version__ = "4.15.1.2 Unreleased - Fix for draw_pixel, fix Multline.update with no value specified" port = 'PySimpleGUI' @@ -1817,7 +1817,6 @@ class Multiline(Element): :param visible: (bool) set visibility state of the element :param autoscroll: (bool) if True then contents of element are scrolled down when new text is added to the end """ - value = str(value) if self.Widget is None: warnings.warn('You cannot Update element with key = {} until the window has been Read or Finalized'.format(self.Key), UserWarning) return @@ -1830,6 +1829,7 @@ class Multiline(Element): self.TKText.tag_configure(str(self.TagCounter), background=background_color_for_value) if value is not None: + value = str(value) if self.Disabled: self.TKText.configure(state='normal') try: