From 830485da5a75cd7ebfbc1f7ed3f5fded52fcb45b Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Thu, 29 Nov 2018 12:53:05 -0500 Subject: [PATCH 1/2] Syntax error --- PySimpleGUIQt/PySimpleGUIQt.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PySimpleGUIQt/PySimpleGUIQt.py b/PySimpleGUIQt/PySimpleGUIQt.py index 45b3a60b..0dcba4b0 100644 --- a/PySimpleGUIQt/PySimpleGUIQt.py +++ b/PySimpleGUIQt/PySimpleGUIQt.py @@ -1108,8 +1108,7 @@ class MultilineOutput(Element): # Text # # ---------------------------------------------------------------------- # class Text(Element): - def __init__(self, text, size=(None, None), auto_size_text=None, click_submits=None, relief=None, font=None, - text_color=None, background_color=None, justification=None, pad=None, margins=None, key=None, tooltip=None): + def __init__(self, text, size=(None, None), auto_size_text=None, click_submits=None, enable_events=True, relief=None, font=None, text_color=None, background_color=None, justification=None, pad=None, margins=None, key=None, tooltip=None): ''' Text Element :param text: @@ -1129,7 +1128,7 @@ class Text(Element): self.TextColor = text_color if text_color else DEFAULT_TEXT_COLOR self.Justification = justification or 'left' self.Relief = relief - self.ClickSubmits = click_submits + self.ClickSubmits = click_submits or enable_events self.Margins = margins if background_color is None: bg = DEFAULT_TEXT_ELEMENT_BACKGROUND_COLOR From 0e289408091b262ad8f6d9f90854a4093d86a488 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Thu, 29 Nov 2018 12:53:24 -0500 Subject: [PATCH 2/2] Syntax error --- PySimpleGUI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 57b36ef1..4ddc9ba9 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -3450,7 +3450,7 @@ def FolderBrowse(button_text='Browse', target=(ThisRow, -1), initial_folder=None # ------------------------- FILE BROWSE Element lazy function ------------------------- # def FileBrowse(button_text='Browse', target=(ThisRow, -1), file_types=(("ALL Files", "*.*"),), initial_folder=None, - tooltip=None, size=(None, None), auto_size_button=None, button_color=None, change_submits=False, font=None, disabled=False, + tooltip=None, size=(None, None), auto_size_button=None, button_color=None, change_submits=False, enable_events=False, font=None, disabled=False, pad=None, key=None): return Button(button_text=button_text, button_type=BUTTON_TYPE_BROWSE_FILE, target=target, file_types=file_types, initial_folder=initial_folder, tooltip=tooltip, size=size, auto_size_button=auto_size_button, change_submits=change_submits, enable_events=enable_events, disabled=disabled, button_color=button_color, font=font, pad=pad, key=key)