From 073faec69ed43ce990307ab6ed9bda123148b1a0 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Sat, 30 Apr 2022 07:30:13 -0400 Subject: [PATCH] Fix crash in Element.bind that was created in 4.59.0.6 (sorry!) --- PySimpleGUI.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index d7e11130..05256559 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -version = __version__ = "4.59.0.33 Released 5-Apr-2022" +version = __version__ = "4.59.0.34 Released 5-Apr-2022" _change_log = """ Changelog since 4.59.0 released to PyPI on 5-Apr-2022 @@ -122,6 +122,9 @@ _change_log = """ Setting both to 1 will make the Column fit the contents exactly. One use is when you expect your Column to grow or shrink over time. Or maybe you didn't like the 1/2 size that PySimpleGUI has always used before. Hoping this isn't too complex to understand! + 4.59.0.34 + Fix crash in Element.bind... likely created in version 4.59.0.6. + Crashes because Elements don't have the method _is_window_created which was being called. YIKES! """ __version__ = version.split()[0] # For PEP 396 and PEP 345 @@ -1562,8 +1565,6 @@ class Element(): if not self._widget_was_created(): # if widget hasn't been created yet, then don't allow return - if not self._is_window_created('tried Window.bind'): - return try: self.Widget.bind(bind_string, lambda evt: self._user_bind_callback(bind_string, evt, propagate)) except Exception as e: