From 4712041ee195b89132d2ec006b8eeaaf3b00f614 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Sat, 25 Dec 2021 12:59:12 -0500 Subject: [PATCH] Fix for set_options - was not checking for True for dpi_awareness --- PySimpleGUI.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index ced6c869..14845bb1 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -version = __version__ = "4.55.1.20 Unreleased" +version = __version__ = "4.55.1.21 Unreleased" _change_log = """ Changelog since 4.55.1 released to PyPI on 7-Nov-2021 @@ -60,6 +60,8 @@ _change_log = """ Button - fix for wraplen on non-TTK buttons. 4.55.1.20 Layout reuse error message + 4.55.1.21 + Fix for set_options checking for "not None" instead of "True" for the dpi_awareness setting. Note that once turned on, there is no option to turn off. """ __version__ = version.split()[0] # For PEP 396 and PEP 345 @@ -16933,7 +16935,7 @@ def set_options(icon=None, button_color=None, element_size=(None, None), button_ if keep_on_top is not None: DEFAULT_KEEP_ON_TOP = keep_on_top - if dpi_awareness is not None: + if dpi_awareness is True: if running_windows(): if platform.release() == "7": ctypes.windll.user32.SetProcessDPIAware()