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

Function _get_hidden_master_root

PySimpleGUI/PySimpleGUI.py:17741–17758  ·  view source on GitHub ↗

Creates the hidden master root window. This window is never visible and represents the overall "application"

()

Source from the content-addressed store, hash-verified

17739
17740
17741def _get_hidden_master_root():
17742 """
17743 Creates the hidden master root window. This window is never visible and represents the overall "application"
17744 """
17745
17746 # if one is already made, then skip making another
17747 if Window.hidden_master_root is None:
17748 Window._IncrementOpenCount()
17749 Window.hidden_master_root = tk.Tk()
17750 Window.hidden_master_root.attributes('-alpha', 0) # HIDE this window really really really
17751 # if not running_mac():
17752 try:
17753 Window.hidden_master_root.wm_overrideredirect(True)
17754 except Exception as e:
17755 if not running_mac():
17756 print('* Error performing wm_overrideredirect while hiding the hidden master root*', e)
17757 Window.hidden_master_root.withdraw()
17758 return Window.hidden_master_root
17759
17760
17761def _no_titlebar_setup(window):

Callers 10

fonts_installed_listMethod · 0.85
char_width_in_pixelsMethod · 0.85
char_height_in_pixelsMethod · 0.85
get_screen_sizeMethod · 0.85
StartupTKFunction · 0.85
clipboard_setFunction · 0.85
clipboard_getFunction · 0.85
popup_get_folderFunction · 0.85
popup_get_fileFunction · 0.85

Calls 2

running_macFunction · 0.85
_IncrementOpenCountMethod · 0.80

Tested by

no test coverage detected