From 8830699f73a8b8f2bf1da2b112f44f2de3965ac4 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Tue, 11 Sep 2018 12:16:29 -0400 Subject: [PATCH] Bug fix in image update --- PySimpleGUI.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 3c0946a0..02bf9b86 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1057,10 +1057,9 @@ class Image(Element): else: image = data else: return - # width, height = image.width(), image.height() - # width, height = image.width(), image.height() - # self.tktext_label.configure(image=image, width=width, height=height) - self.tktext_label.configure(image=image) + width, height = image.width(), image.height() + self.tktext_label.configure(image=image, width=width, height=height) + # self.tktext_label.configure(image=image) self.tktext_label.image = image def __del__(self):