import PySimpleGUI as sg
layout = [
[sg.Slider(range=(0, 10), default_value=4, orientation='h')]
]
window = sg.Window(title="Zatrudnienie", layout=layout)
while True:
event, values = window.read(timeout = 100)
if event == sg.WIN_CLOSED:
break
window.close()