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

Method keep_on_top_set

PySimpleGUI/PySimpleGUI.py:11789–11802  ·  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

(self)

Source from the content-addressed store, hash-verified

11787 pass
11788
11789 def keep_on_top_set(self):
11790 """
11791 Sets keep_on_top after a window has been created. Effect is the same
11792 as if the window was created with this set. The Window is also brought
11793 to the front
11794 """
11795 if not self._is_window_created('tried Window.keep_on_top_set'):
11796 return
11797 self.KeepOnTop = True
11798 self.bring_to_front()
11799 try:
11800 self.TKroot.wm_attributes("-topmost", 1)
11801 except Exception as e:
11802 warnings.warn('Problem in Window.keep_on_top_set trying to set wm_attributes topmost' + str(e), UserWarning)
11803
11804 def keep_on_top_clear(self):
11805 """

Callers 2

mainFunction · 0.95
settingsFunction · 0.80

Calls 2

_is_window_createdMethod · 0.95
bring_to_frontMethod · 0.95

Tested by

no test coverage detected