This commit is contained in:
MikeTheWatchGuy 2018-09-01 11:37:36 -04:00
parent a19fb528d4
commit 209e5ebf25
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ form = sg.FlexForm("Font size selector")
fontSize = 12 fontSize = 12
sampleText = sg.Text("Aa", size=(2, 1), font="Helvetica " + str(fontSize)) sampleText = sg.Text("Aa", size=(2, 1), font="Helvetica " + str(fontSize))
slider = sg.Slider(range=(6,50), orientation='h', size=(10,20), change_submits=False, key='slider') slider = sg.Slider(range=(6,50), orientation='h', size=(10,20), change_submits=True, key='slider')
spin = sg.Spin([sz for sz in range(4,72)], font=('Helvetica 20'), initial_value=fontSize, change_submits=True, key='spin') spin = sg.Spin([sz for sz in range(4,72)], font=('Helvetica 20'), initial_value=fontSize, change_submits=True, key='spin')
layout = [ layout = [
[sampleText, spin, slider], [sampleText, spin, slider],