Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pysimplegui double Slider

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()
 
PREVIOUS NEXT
Tagged: #pysimplegui #double #Slider
ADD COMMENT
Topic
Name
3+7 =