Merge pull request #3001 from PySimpleGUI/Dev-latest

Removed requirement of new theme_add_new function (added theme using …
This commit is contained in:
PySimpleGUI 2020-06-11 16:44:42 -04:00 committed by GitHub
commit 0a099e9f04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,6 @@ import PySimpleGUI as sg
""" """
Dashboard using blocks of information. Dashboard using blocks of information.
Requires 4.20.0.1 PySimpleGUI.py file so can add the new theme
Copyright 2020 PySimpleGUI.org Copyright 2020 PySimpleGUI.org
""" """
@ -17,7 +16,8 @@ theme_dict = {'BACKGROUND': '#2B475D',
'PROGRESS': ('#FFFFFF', '#C7D5E0'), 'PROGRESS': ('#FFFFFF', '#C7D5E0'),
'BORDER': 1,'SLIDER_DEPTH': 0, 'PROGRESS_DEPTH': 0} 'BORDER': 1,'SLIDER_DEPTH': 0, 'PROGRESS_DEPTH': 0}
sg.theme_add_new('Dashboard', theme_dict) # sg.theme_add_new('Dashboard', theme_dict) # if using 4.20.0.1+
sg.LOOK_AND_FEEL_TABLE['Dashboard'] = theme_dict
sg.theme('Dashboard') sg.theme('Dashboard')
BORDER_COLOR = '#C7D5E0' BORDER_COLOR = '#C7D5E0'