From 7ea32009d79e75b889da7c077a5175b943695290 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Wed, 19 Feb 2020 15:32:14 -0500 Subject: [PATCH] Element.set_size - retry height failure using length instead --- PySimpleGUI.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 1b216683..06606329 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -version = __version__ = "4.15.1.15 Unreleased - Fix for draw_pixel, fix Multline.update with no value specified, listbox update no longer selects a default, all justifications can be shortened to single letter, fix for debug window closed with Quit button, removed f-string, draw_polygon added, print_to_element added, Listbox.get, Listbox update parm select_mode, check for None when creating Multiline, Element.unbind, Image now defaults to filename='', added Window.element_list(), close parameter for Window.read, SystemTray implemented, Menu font parameter, fix for window.read" +version = __version__ = "4.15.1.16 Unreleased - Fix for draw_pixel, fix Multline.update with no value specified, listbox update no longer selects a default, all justifications can be shortened to single letter, fix for debug window closed with Quit button, removed f-string, draw_polygon added, print_to_element added, Listbox.get, Listbox update parm select_mode, check for None when creating Multiline, Element.unbind, Image now defaults to filename='', added Window.element_list(), close parameter for Window.read, SystemTray implemented, Menu font parameter, fix for window.read, set_size retry using length" port = 'PySimpleGUI' @@ -864,7 +864,10 @@ class Element(): if size[1] != None: self.Widget.config(height=size[1]) except: - print('Warning, error setting height on element with key=', self.Key) + try: + self.Widget.config(length=size[1]) + except: + print('Warning, error setting height on element with key=', self.Key) def get_size(self): """