From 8c326024f43447de8ec56081c528bb421801f6e1 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Sun, 28 Oct 2018 12:39:55 -0400 Subject: [PATCH] Button no longer closes the Window!! --- PySimpleGUI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index b5927e3d..d8c32343 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1171,7 +1171,7 @@ class Output(Element): # Button Class # # ---------------------------------------------------------------------- # class Button(Element): - def __init__(self, button_text='', button_type=BUTTON_TYPE_CLOSES_WIN, target=(None, None), tooltip=None, + def __init__(self, button_text='', button_type=BUTTON_TYPE_READ_FORM, target=(None, None), tooltip=None, file_types=(("ALL Files", "*.*"),), initial_folder=None, disabled=False, image_filename=None, image_data=None, image_size=(None, None), image_subsample=None, border_width=None, size=(None, None), auto_size_button=None, button_color=None, font=None, bind_return_key=False,