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

Method bring_to_front

PySimpleGUI/PySimpleGUI.py:11757–11776  ·  view source on GitHub ↗

Brings this window to the top of all other windows (perhaps may not be brought before a window made to "stay on top")

(self)

Source from the content-addressed store, hash-verified

11755 self.TKroot.attributes('-alpha', alpha)
11756
11757 def bring_to_front(self):
11758 """
11759 Brings this window to the top of all other windows (perhaps may not be brought before a window made to "stay
11760 on top")
11761 """
11762 if not self._is_window_created('tried Window.bring_to_front'):
11763 return
11764 if running_windows():
11765 try:
11766 self.TKroot.wm_attributes("-topmost", 0)
11767 self.TKroot.wm_attributes("-topmost", 1)
11768 if not self.KeepOnTop:
11769 self.TKroot.wm_attributes("-topmost", 0)
11770 except Exception as e:
11771 warnings.warn('Problem in Window.bring_to_front' + str(e), UserWarning)
11772 else:
11773 try:
11774 self.TKroot.lift()
11775 except:
11776 pass
11777
11778 def send_to_back(self):
11779 """

Callers 5

make_windowFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
keep_on_top_setMethod · 0.95
keep_on_top_setFunction · 0.80

Calls 2

_is_window_createdMethod · 0.95
running_windowsFunction · 0.70

Tested by

no test coverage detected