diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 9ebe1543..81f3136e 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -version = __version__ = "4.27.1 Released 3-Aug-2020" +version = __version__ = "4.27.4 Released 3-Aug-2020" port = 'PySimpleGUI' @@ -2258,7 +2258,7 @@ class Multiline(Element): if text_color_for_value is not None: self.TKText.tag_configure(tag, foreground=text_color_for_value) except Exception as e: - print(f'* Multiline.update - bad color likely specified: {e}') + print('* Multiline.update - bad color likely specified:', e) if self.Disabled: self.TKText.configure(state='normal') try: @@ -2272,7 +2272,7 @@ class Multiline(Element): # self.TKText.tag_add(just_tag, starting_point, starting_point) except Exception as e: - print(f'* Error setting multiline {e}') + print("* Error setting multiline *", e) if self.Disabled: self.TKText.configure(state='disabled') self.DefaultText = value @@ -7988,12 +7988,12 @@ class Window: y = window.TKroot.winfo_y() + deltay window.TKroot.geometry("+%s+%s" % (x, y)) # this is what really moves the window except Exception as e: - print(f'on motion error {e}', f'title = {window.Title}') + print('on motion error', e) def _config_callback(self, event): - print(f'Config event = {event} window = {self.Title}') + # print('Config event = {} window = {}'.format(event, self.Title)) try: deltax = event.x - self.TKroot.x deltay = event.y - self.TKroot.y @@ -8008,7 +8008,7 @@ class Window: y = window.TKroot.winfo_y() + deltay window.TKroot.geometry("+%s+%s" % (x, y)) # this is what really moves the window except Exception as e: - print(f'on motion error {e}', f'title = {window.Title}') + print('on motion error {}'.format(e), 'title = {}'.format(window.Title)) """ @@ -14622,7 +14622,7 @@ def theme_previewer(columns=12, scrollable=False, scroll_area_size=(None, None), names = list_of_look_and_feel_values() names.sort() if search_string not in (None, ''): - print(f'Looking for {search_string.lower().replace(" ","")}') + # print(f'Looking for {search_string.lower().replace(" ","")}') names = [name for name in names if search_string.lower().replace(" ","") in name.lower().replace(" ","")] if search_string not in (None, ''): diff --git a/docs/index.md b/docs/index.md index a35de781..c6433e24 100644 --- a/docs/index.md +++ b/docs/index.md @@ -7629,7 +7629,7 @@ k element parameter * Window.write_event_values - now requires both parms * Upgrade button typo -## 4.27.1 PySimpleGUI 3-Aug-2020 +## 4.27.4 PySimpleGUI 3-Aug-2020 Multi-window support done right! New capabilities for printing, Multiline @@ -7673,6 +7673,7 @@ Theme searching * Column Element's Widget member variable now being set * Window's starting window location saved * Early experimental "Move all windows in sync" when using grab_anywhere (coming soon) +* Fix for 3.4 (can't use f-strings) ### Upcoming diff --git a/readme.md b/readme.md index a35de781..c6433e24 100644 --- a/readme.md +++ b/readme.md @@ -7629,7 +7629,7 @@ k element parameter * Window.write_event_values - now requires both parms * Upgrade button typo -## 4.27.1 PySimpleGUI 3-Aug-2020 +## 4.27.4 PySimpleGUI 3-Aug-2020 Multi-window support done right! New capabilities for printing, Multiline @@ -7673,6 +7673,7 @@ Theme searching * Column Element's Widget member variable now being set * Window's starting window location saved * Early experimental "Move all windows in sync" when using grab_anywhere (coming soon) +* Fix for 3.4 (can't use f-strings) ### Upcoming