From 012702429a3bc278fb53f9668cf603dd615142ea Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Thu, 11 Jun 2020 16:44:25 -0400 Subject: [PATCH] Removed requirement of new theme_add_new function (added theme using old way for now) --- DemoPrograms/Demo_Dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DemoPrograms/Demo_Dashboard.py b/DemoPrograms/Demo_Dashboard.py index 1afc8887..1308fff3 100644 --- a/DemoPrograms/Demo_Dashboard.py +++ b/DemoPrograms/Demo_Dashboard.py @@ -2,7 +2,6 @@ import PySimpleGUI as sg """ Dashboard using blocks of information. - Requires 4.20.0.1 PySimpleGUI.py file so can add the new theme Copyright 2020 PySimpleGUI.org """ @@ -17,7 +16,8 @@ theme_dict = {'BACKGROUND': '#2B475D', 'PROGRESS': ('#FFFFFF', '#C7D5E0'), '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') BORDER_COLOR = '#C7D5E0'