MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / keep_on_top_set

Function keep_on_top_set

DemoPrograms/Demo_Window_Pin_On_Top.py:55–63  ·  view source on GitHub ↗

Sets keep_on_top after a window has been created. Effect is the same as if the window was created with this set. The Window is also brought to the front

(window)

Source from the content-addressed store, hash-verified

53
54# Temp definitions of the Window methods added to 4.46.0.7 of PySimpleGUI
55def keep_on_top_set(window):
56 """
57 Sets keep_on_top after a window has been created. Effect is the same
58 as if the window was created with this set. The Window is also brought
59 to the front
60 """
61 window.KeepOnTop = True
62 window.bring_to_front()
63 window.TKroot.wm_attributes("-topmost", 1)
64
65
66def keep_on_top_clear(window):

Callers

nothing calls this directly

Calls 1

bring_to_frontMethod · 0.80

Tested by

no test coverage detected