From 20cc794029cb1c806aa36ea9a6008c941ee4588d Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Sat, 23 Jan 2021 18:40:50 -0500 Subject: [PATCH] Fix for popup_get_file - wasn't passing the default_extension correctly --- PySimpleGUI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 66069877..abfaabf4 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -version = __version__ = "4.34.0.4 Unreleased\nSDK Help Expanded to init & update parms, SDK Help function search, files_delimiter added to FilesBrowse & popup_get_file, SDK help sort by case" +version = __version__ = "4.34.0.5 Unreleased\nSDK Help Expanded to init & update parms, SDK Help function search, files_delimiter added to FilesBrowse & popup_get_file, SDK help sort by case, popup_get_file fixed default_extension not being passed to button correctly" __version__ = version.split()[0] # For PEP 396 and PEP 345 @@ -16257,7 +16257,7 @@ def popup_get_file(message, title=None, default_path='', default_extension='', s return filename if save_as: - browse_button = SaveAs(file_types=file_types, initial_folder=initial_folder) + browse_button = SaveAs(file_types=file_types, initial_folder=initial_folder, default_extension=default_extension) elif multiple_files: browse_button = FilesBrowse(file_types=file_types, initial_folder=initial_folder, files_delimiter=files_delimiter) else: