From b3f870da93434363f21d69b6eb488936343066f1 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Sat, 20 Mar 2021 19:06:00 -0400 Subject: [PATCH] Dark Green theme --- DemoPrograms/Demo_Menubar_Custom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DemoPrograms/Demo_Menubar_Custom.py b/DemoPrograms/Demo_Menubar_Custom.py index a99d896e..fdf408d8 100644 --- a/DemoPrograms/Demo_Menubar_Custom.py +++ b/DemoPrograms/Demo_Menubar_Custom.py @@ -38,7 +38,7 @@ def Menubar(menu_def, text_color, background_color, pad=(0, 0)): row = [] for menu in menu_def: text = menu[0] - if text.__contains__(sg.MENU_SHORTCUT_CHARACTER): + if sg.MENU_SHORTCUT_CHARACTER in text: text = text.replace(sg.MENU_SHORTCUT_CHARACTER, '') if text.startswith(sg.MENU_DISABLED_CHARACTER): disabled = True @@ -50,7 +50,7 @@ def Menubar(menu_def, text_color, background_color, pad=(0, 0)): return sg.Column([row], background_color=background_color, pad=(0,0), expand_x=True) def main(): - # sg.theme('dark green 7') + sg.theme('dark green 7') # sg.theme('dark gray 14') menu_def = [['&File', ['&Open Ctrl-O', '&Save Ctrl-S', '&Properties', 'E&xit']],