Turn off grab_anywhere on Demos of realtime buttons due to error message from tkinter

This commit is contained in:
MikeTheWatchGuy 2018-09-07 10:33:23 -04:00
parent c905acdd3d
commit fdab86b66f
5 changed files with 16 additions and 17 deletions

View file

@ -4,7 +4,6 @@
import PySimpleGUI as sg
form = sg.FlexForm("Font size selector")
fontSize = 12
@ -12,6 +11,7 @@ layout = [[sg.Spin([sz for sz in range(6, 172)], font=('Helvetica 20'), initial_
sg.Slider(range=(6,172), orientation='h', size=(10,20), change_submits=True, key='slider', font=('Helvetica 20')), sg.Text("Aa", size=(2, 1), font="Helvetica " + str(fontSize), key='text')]]
sz = fontSize
form = sg.FlexForm("Font size selector", grab_anywhere=False)
form.Layout(layout)
while True:
button, values= form.Read()