Reads the settings from the PySimpleGUI Global Settings and sets variables that are used at runtime to control how certain features behave
()
| 23541 | |
| 23542 | |
| 23543 | def _read_mac_global_settings(): |
| 23544 | """ |
| 23545 | Reads the settings from the PySimpleGUI Global Settings and sets variables that |
| 23546 | are used at runtime to control how certain features behave |
| 23547 | """ |
| 23548 | |
| 23549 | global ENABLE_MAC_MODAL_DISABLE_PATCH |
| 23550 | global ENABLE_MAC_NOTITLEBAR_PATCH |
| 23551 | global ENABLE_MAC_DISABLE_GRAB_ANYWHERE_WITH_TITLEBAR |
| 23552 | global ENABLE_MAC_ALPHA_99_PATCH |
| 23553 | |
| 23554 | ENABLE_MAC_MODAL_DISABLE_PATCH = pysimplegui_user_settings.get(MAC_PATCH_DICT['Disable Modal Windows'][0], |
| 23555 | MAC_PATCH_DICT['Disable Modal Windows'][1]) |
| 23556 | ENABLE_MAC_NOTITLEBAR_PATCH = pysimplegui_user_settings.get(MAC_PATCH_DICT['Enable No Titlebar Patch'][0], |
| 23557 | MAC_PATCH_DICT['Enable No Titlebar Patch'][1]) |
| 23558 | ENABLE_MAC_DISABLE_GRAB_ANYWHERE_WITH_TITLEBAR = pysimplegui_user_settings.get(MAC_PATCH_DICT['Disable Grab Anywhere with Titlebar'][0], |
| 23559 | MAC_PATCH_DICT['Disable Grab Anywhere with Titlebar'][1]) |
| 23560 | ENABLE_MAC_ALPHA_99_PATCH = pysimplegui_user_settings.get(MAC_PATCH_DICT['Set Alpha Channel to 0.99 for MacOS >= 12.3'][0], |
| 23561 | MAC_PATCH_DICT['Set Alpha Channel to 0.99 for MacOS >= 12.3'][1]) |
| 23562 | |
| 23563 | |
| 23564 | def _mac_should_apply_notitlebar_patch(): |
no test coverage detected