Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pg 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: #pg #double #slider
ADD COMMENT
Topic
Name
6+7 =