Merge pull request #1040 from PySimpleGUI/Dev-latest
Fix for scale not returning float values
This commit is contained in:
		
						commit
						11334a0ced
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -4352,7 +4352,7 @@ def BuildResultsForSubform(form, initialize_only, top_level_form): | ||||||
|                         value = 0 |                         value = 0 | ||||||
|                 elif element.Type == ELEM_TYPE_INPUT_SLIDER: |                 elif element.Type == ELEM_TYPE_INPUT_SLIDER: | ||||||
|                     try: |                     try: | ||||||
|                         value = element.TKIntVar.get() |                         value = float(element.TKScale.get()) | ||||||
|                     except: |                     except: | ||||||
|                         value = 0 |                         value = 0 | ||||||
|                 elif element.Type == ELEM_TYPE_INPUT_MULTILINE: |                 elif element.Type == ELEM_TYPE_INPUT_MULTILINE: | ||||||
|  | @ -5041,6 +5041,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form:Window): | ||||||
|                                         'sticky': 'nswe'})]) |                                         'sticky': 'nswe'})]) | ||||||
| 
 | 
 | ||||||
|                     # Copy default TCombobox settings |                     # Copy default TCombobox settings | ||||||
|  |                     # Getting an error on this line of code | ||||||
|                     # combostyle.configure(style_name, *combostyle.configure("TCombobox")) |                     # combostyle.configure(style_name, *combostyle.configure("TCombobox")) | ||||||
| 
 | 
 | ||||||
|                     # Set individual widget options |                     # Set individual widget options | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue