Creates the hidden master root window. This window is never visible and represents the overall "application"
()
| 17739 | |
| 17740 | |
| 17741 | def _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 | |
| 17761 | def _no_titlebar_setup(window): |
no test coverage detected