Made version window non-blocking
This commit is contained in:
parent
67863949af
commit
331774cb5f
|
@ -29,7 +29,7 @@ layout = [ [sg.Graph((100,100), (0,100), (100,0), key='-GRAPH-')],
|
||||||
[sg.T(k='-OUT LOC-')],
|
[sg.T(k='-OUT LOC-')],
|
||||||
[sg.T('F1 copy F2 Exit')]]
|
[sg.T('F1 copy F2 Exit')]]
|
||||||
|
|
||||||
window = sg.Window('Color Picker', layout, no_titlebar=True, keep_on_top=True, grab_anywhere=True, right_click_menu=sg.MENU_RIGHT_CLICK_EDITME_VER_EXIT, finalize=True)
|
window = sg.Window('Color Picker', layout, no_titlebar=False, keep_on_top=True, grab_anywhere=True, right_click_menu=sg.MENU_RIGHT_CLICK_EDITME_VER_EXIT, finalize=True)
|
||||||
|
|
||||||
window.bind('<F1>', '-COPY-')
|
window.bind('<F1>', '-COPY-')
|
||||||
window.bind('<F2>', 'Exit')
|
window.bind('<F2>', 'Exit')
|
||||||
|
@ -45,7 +45,7 @@ while True:
|
||||||
if event == 'Edit Me':
|
if event == 'Edit Me':
|
||||||
sp = sg.execute_editor(__file__)
|
sp = sg.execute_editor(__file__)
|
||||||
elif event == 'Version':
|
elif event == 'Version':
|
||||||
sg.popup_scrolled(__file__, sg.get_versions(), keep_on_top=True, location=window.current_location())
|
sg.popup_scrolled(__file__, sg.get_versions(), keep_on_top=True, location=window.current_location(), non_blocking=True)
|
||||||
|
|
||||||
window['-GRAPH-'].erase()
|
window['-GRAPH-'].erase()
|
||||||
x, y = window.mouse_location()
|
x, y = window.mouse_location()
|
||||||
|
|
Loading…
Reference in New Issue