From be8e11832e842f1d407f6446ef9d86174471bba4 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 25 Oct 2021 14:47:53 -0400 Subject: [PATCH] Update Demo_Image_Resize_and_Base64_Encode.pyw --- DemoPrograms/Demo_Image_Resize_and_Base64_Encode.pyw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DemoPrograms/Demo_Image_Resize_and_Base64_Encode.pyw b/DemoPrograms/Demo_Image_Resize_and_Base64_Encode.pyw index 929f4c8e..3f6993fe 100644 --- a/DemoPrograms/Demo_Image_Resize_and_Base64_Encode.pyw +++ b/DemoPrograms/Demo_Image_Resize_and_Base64_Encode.pyw @@ -50,11 +50,11 @@ def main(): [sg.Button('Resize', bind_return_key=True), sg.Button('Exit')], [sg.T('Note - on some systems, autoclose cannot be used\nbecause the clipboard is cleared by tkinter')],] - window = sg.Window('Resize Image', layout, icon=image_resize_icon, right_click_menu=sg.MENU_RIGHT_CLICK_EDITME_VER_LOC_EXIT, enable_close_attempted_event=True, scaling=1.25) + window = sg.Window('Resize Image', layout, icon=image_resize_icon, right_click_menu=sg.MENU_RIGHT_CLICK_EDITME_VER_LOC_EXIT, enable_close_attempted_event=True) while True: event, values = window.read() - print(event, values) + # print(event, values) if event in (sg.WIN_CLOSED, sg.WIN_CLOSE_ATTEMPTED_EVENT, 'Exit'): sg.user_settings_set_entry('-autoclose-', values['-AUTOCLOSE-']) break