Merge pull request #1967 from PySimpleGUI/Dev-latest

force flag added to ChangeLookAndFeel
This commit is contained in:
PySimpleGUI 2019-09-13 20:33:22 -04:00 committed by GitHub
commit d9ab48bda0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/python3 #!/usr/bin/python3
version = __version__ = "4.5.0.3 Unreleased Metadata" version = __version__ = "4.5.0.4 Unreleased Metadata & Mac Color Force"
# 888888ba .d88888b oo dP .88888. dP dP dP # 888888ba .d88888b oo dP .88888. dP dP dP
@ -9783,7 +9783,7 @@ def ListOfLookAndFeelValues():
return list(LOOK_AND_FEEL_TABLE.keys()) return list(LOOK_AND_FEEL_TABLE.keys())
def ChangeLookAndFeel(index): def ChangeLookAndFeel(index, force=False):
""" """
:param index: :param index:
@ -9791,7 +9791,7 @@ def ChangeLookAndFeel(index):
""" """
# global LOOK_AND_FEEL_TABLE # global LOOK_AND_FEEL_TABLE
if sys.platform == 'darwin': if sys.platform == 'darwin' and not force:
print('*** Changing look and feel is not supported on Mac platform ***') print('*** Changing look and feel is not supported on Mac platform ***')
return return