Fix for scale not returning float values

This commit is contained in:
MikeTheWatchGuy 2019-01-05 09:51:25 -05:00
parent fe1c16ff9a
commit 0ec5aced50
1 changed files with 2 additions and 1 deletions

View File

@ -4344,7 +4344,7 @@ def BuildResultsForSubform(form, initialize_only, top_level_form):
value = 0
elif element.Type == ELEM_TYPE_INPUT_SLIDER:
try:
value = element.TKIntVar.get()
value = float(element.TKScale.get())
except:
value = 0
elif element.Type == ELEM_TYPE_INPUT_MULTILINE:
@ -5033,6 +5033,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form:Window):
'sticky': 'nswe'})])
# Copy default TCombobox settings
# Getting an error on this line of code
# combostyle.configure(style_name, *combostyle.configure("TCombobox"))
# Set individual widget options