From 2925d52c693078ec16efc26b8e58e095f302ebe1 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 24 May 2021 09:46:24 -0400 Subject: [PATCH] Fix for ICON_BASE64_LIST having been renamed in PySimpleGUI but not in the demo --- DemoPrograms/Demo_PIL_Use.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DemoPrograms/Demo_PIL_Use.py b/DemoPrograms/Demo_PIL_Use.py index 0fe3993f..bffd9857 100644 --- a/DemoPrograms/Demo_PIL_Use.py +++ b/DemoPrograms/Demo_PIL_Use.py @@ -60,7 +60,7 @@ def convert_to_bytes(file_or_bytes, resize=None, fill=False): return bio.getvalue() def random_image(): - return random.choice(sg.ICON_BASE64_LIST) + return random.choice(sg.EMOJI_BASE64_LIST) def make_toolbar(): layout = [[sg.T('❎', enable_events=True, key='Exit')]] @@ -92,7 +92,7 @@ def main(): if size[0] > 20: size = (size[0]-20, size[1]-20) elif event in ('Next', '-BUTTON IMAGE-'): - image = random.choice(sg.ICON_BASE64_LIST) + image = random.choice(sg.EMOJI_BASE64_LIST) elif event_window == toolbar: image = event_window[event].ImageData