From 07fe6684f1798fb9e40edea02e15e1315fdf7902 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Wed, 16 Jan 2019 23:48:38 -0500 Subject: [PATCH] Support for text in PopupAnimated --- PySimpleGUI.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index add1678b..7f42ee03 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -7437,16 +7437,16 @@ def PopupAnimated(image_source, message=None, background_color=None, text_color= if image_source not in Window.animated_popup_dict: layout = [[Image(data=image_source, background_color=background_color, key='_IMAGE_',)],] if message: - layout.Append(Text(message, background_color=background_color, text_color=text_color, font=font)) + layout.append([Text(message, background_color=background_color, text_color=text_color, font=font)]) window = Window('Animated GIF', no_titlebar=no_titlebar, grab_anywhere=grab_anywhere, keep_on_top=keep_on_top, - background_color=background_color, location=location, alpha_channel=alpha_channel).Layout(layout) + background_color=background_color, location=location, alpha_channel=alpha_channel).Layout(layout).Finalize() Window.animated_popup_dict[image_source] = window else: window = Window.animated_popup_dict[image_source] window.Element('_IMAGE_').UpdateAnimation(image_source, time_between_frames=time_between_frames) - - button, values = window.Read(timeout=0) + window.Refresh() + # button, values = window.Read(timeout=0)