Home

Published

- 1 min read

pysimplegui double Slider

img of pysimplegui double Slider

The solution for this is noted below

pysimplegui double Slider

Solution

   import PySimpleGUI as sg

layout = [
    [sg.Frame('Work Hours', [[sg.Slider(range=(0, 12), orientation='h', key='-START-'), sg.Slider(range=(12, 24), orientation='h', key='-END-')]])],
]

window = sg.Window(title="Zatrudnienie", layout=layout)

while True:
    event, values = window.read(timeout=50)

    if event == sg.WIN_CLOSED:
        break
    print(values)

window.close()

Try other methods by searching on the site. That is if this doesn’t work