Merge pull request #4568 from PySimpleGUI/Dev-latest

Removed the recently added test for Mac so that the SECOND of the wm_…
This commit is contained in:
PySimpleGUI 2021-07-31 14:46:47 -04:00 committed by GitHub
commit 385c86d9bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -14523,9 +14523,8 @@ def _convert_window_to_tk(window):
window.TKroot.y = int(y) window.TKroot.y = int(y)
window.starting_window_position = (int(x), (int(y))) window.starting_window_position = (int(x), (int(y)))
master.update_idletasks() # don't forget master.update_idletasks() # don't forget
# The Mac is sensative to notitlebar, so skipping the second call
if not running_mac(): _no_titlebar_setup(window)
_no_titlebar_setup(window)
return return
@ -14614,8 +14613,7 @@ def StartupTK(window):
window.SetIcon(window.WindowIcon) window.SetIcon(window.WindowIcon)
try: try:
root.attributes('-alpha', root.attributes('-alpha', 1 if window.AlphaChannel is None else window.AlphaChannel) # Make window visible again
1 if window.AlphaChannel is None else window.AlphaChannel) # Make window visible again
except: except:
pass pass