Added keep on top since it's a clock.... perhaps a personal taste thing and maybe should be an option? Will ponder this for desktop widgets across the board.... hmmmm......

This commit is contained in:
PySimpleGUI 2022-05-05 07:20:08 -04:00
parent 135c0703d9
commit c8821426b5
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ def main():
layout = [[sg.Image(blank, key=('-IMAGE-', i), p=0, subsample=subsample) for i in range(max_digits)]]
window = sg.Window('', layout, background_color='black', no_titlebar=True, grab_anywhere=True, right_click_menu=right_click_menu, location=location, enable_close_attempted_event=True, alpha_channel=alpha, metadata=subsample)
window = sg.Window('', layout, background_color='black', no_titlebar=True, grab_anywhere=True, right_click_menu=right_click_menu, location=location, keep_on_top=True, enable_close_attempted_event=True, alpha_channel=alpha, metadata=subsample)
while True:
event, values = window.read(timeout=300)