Merge pull request #6383 from PySimpleGUI/Dev-latest

Only enable the Mac alpha channel 0.99 patch when tkinter version is …
This commit is contained in:
PySimpleGUI 2023-05-20 08:30:50 -04:00 committed by GitHub
commit ca66e38c99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/python3 #!/usr/bin/python3
version = __version__ = "4.61.0.181 Unreleased" version = __version__ = "4.61.0.182 Unreleased"
_change_log = """ _change_log = """
Changelog since 4.60.0 released to PyPI on 8-May-2022 Changelog since 4.60.0 released to PyPI on 8-May-2022
@ -432,6 +432,8 @@ _change_log = """
Removed Security tab from system settings Removed Security tab from system settings
4.61.0.181 4.61.0.181
Added check for None and COLOR_SYSTEM_DEFAULT before any colors being set in Input.update Added check for None and COLOR_SYSTEM_DEFAULT before any colors being set in Input.update
4.61.0.182
Only enable the Mac alpha channel 0.99 patch when tkinter version is 8.6.12. Have learned this is not needed for any other tkinter version
""" """
@ -23918,6 +23920,10 @@ def _mac_should_set_alpha_to_99():
if not ENABLE_MAC_ALPHA_99_PATCH: if not ENABLE_MAC_ALPHA_99_PATCH:
return False return False
# ONLY enable this patch for tkinter version 8.6.12
if framework_version != '8.6.12':
return False
# At this point, we're running a Mac and the alpha patch is enabled # At this point, we're running a Mac and the alpha patch is enabled
# Final check is to see if Mac OS version is 12.3 or later # Final check is to see if Mac OS version is 12.3 or later
try: try: