From f64444e4235ffc11de70b946ae0f57efa264a825 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Wed, 16 Mar 2022 10:55:23 -0400 Subject: [PATCH] Allow file browse to generate events for disabled elements being filled --- PySimpleGUI.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index bf1755ef..25a817fa 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -version = __version__ = "4.57.0.10 Unreleased" +version = __version__ = "4.57.0.11 Unreleased" _change_log = """ Changelog since 4.57.0 released to PyPI on 13-Feb-2022 @@ -25,6 +25,8 @@ _change_log = """ Added bind_return_key to Spin element. If element has focus and the return key is pressed, then an event is generated. 4.57.0.10 If an element is disabled, then don't generate events (fixed specifically for Input element) + 4.57.0.11 + Added event generation back for disabled elements if the event was a browse button filling in the element """ __version__ = version.split()[0] # For PEP 396 and PEP 345 @@ -4449,7 +4451,7 @@ class Button(Element): except: pass try: - if target_element.ChangeSubmits and not target_element.Disabled: + if target_element.ChangeSubmits: should_submit_window = True except: pass