Merge pull request #2618 from PySimpleGUI/Dev-latest
Element.set_size - retry height failure using length instead
This commit is contained in:
		
						commit
						4139a54425
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -1,6 +1,6 @@ | ||||||
| #!/usr/bin/python3 | #!/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' | port = 'PySimpleGUI' | ||||||
| 
 | 
 | ||||||
|  | @ -864,7 +864,10 @@ class Element(): | ||||||
|             if size[1] != None: |             if size[1] != None: | ||||||
|                 self.Widget.config(height=size[1]) |                 self.Widget.config(height=size[1]) | ||||||
|         except: |         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): |     def get_size(self): | ||||||
|         """ |         """ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue