2018-11-08 20:13:53 +00:00
|
|
|
import PySimpleGUIQt as sg
|
2018-11-06 19:06:54 +00:00
|
|
|
|
|
|
|
layout = [
|
|
|
|
[sg.Text('This is the new Dial Element!')],
|
|
|
|
[sg.Dial(range=(1,100), key='_DIAL_')],
|
|
|
|
[sg.Button('Show'), sg.Button('Exit')]
|
|
|
|
]
|
|
|
|
|
|
|
|
window = sg.Window('Window Title').Layout(layout)
|
|
|
|
|
|
|
|
while True: # Event Loop
|
|
|
|
event, values = window.Read()
|
|
|
|
print(event, values)
|
|
|
|
if event is None or event == 'Exit':
|
|
|
|
break
|
|
|
|
|
|
|
|
window.Close()
|