From 567c4c124dd0a9baa155399f83d343197a119867 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Tue, 23 Mar 2021 16:09:32 -0400 Subject: [PATCH] Quotes around filename needed --- DemoPrograms/Demo_PyCharm_Diff_2_Files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DemoPrograms/Demo_PyCharm_Diff_2_Files.py b/DemoPrograms/Demo_PyCharm_Diff_2_Files.py index cb62b7b9..7bcd66a9 100644 --- a/DemoPrograms/Demo_PyCharm_Diff_2_Files.py +++ b/DemoPrograms/Demo_PyCharm_Diff_2_Files.py @@ -33,7 +33,7 @@ def main(): sg.user_settings_set_entry('-last filename chosen1-', values['-COMBO1-']) sg.user_settings_set_entry('-filenames2-', list(set(sg.user_settings_get_entry('-filenames2-', []) + [values['-COMBO2-'],]))) sg.user_settings_set_entry('-last filename chosen2-', values['-COMBO2-']) - sg.execute_command_subprocess(sg.pysimplegui_user_settings.get('-editor program-', None), 'diff',values['-COMBO1-'], values['-COMBO2-']) + sg.execute_command_subprocess(sg.pysimplegui_user_settings.get('-editor program-', None), 'diff', '"' +values['-COMBO1-']+'"' , '"' +values['-COMBO2-']+'"' ) # sg.popup(f"You chose {values['-COMBO1-']} and {values['-COMBO2-']}") elif event == '-CLEAR1-': sg.user_settings_set_entry('-filenames1-', [])