| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 478412b commit 98fa545
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -54,7 +54,7 @@ | |||
| 54 | 54 | ||
| 55 | 55 | """ | |
| 56 | 56 | ||
| 57 | - version = "6.3.7" | ||
| 57 | + version = "6.3.8" | ||
| 58 | 58 | ||
| 59 | 59 | ||
| 60 | 60 | ||
@@ -77,6 +77,8 @@ | |||
| 77 | 77 | that indicates the directions the window can be resized (e.g. resizable=(False, True) means only allow resizing in the Y direction. | |
| 78 | 78 | 6.3.6 15-Aug-2026 Changed _error_popup_with_code to add the text at the top of the error window into the Multiline so that a user can copy the entire error using the Multiline | |
| 79 | 79 | 6.3.7 18-Aug-2026 New debugging aid - "set tooltip to element's key" is enabled by calling set_options(set_tooltip_to_element_key=True) | |
| 80 | + 6.3.8 21-Aug-2026 Added kwargs to set_options. Used to soak up options that are not recognized. This keeps bad options from crashing the program. It won't help the | ||
| 81 | + older versions of PySimpleGUI that don't recognize a new option, but it will help from this version of PySimpleGUI onward | ||
| 80 | 82 | """ | |
| 81 | 83 | ||
| 82 | 84 | ||
@@ -19274,7 +19276,7 @@ def set_options(icon=None, button_color=None, element_size=(None, None), button_ | |||
| 19274 | 19276 | enable_mac_notitlebar_patch=None, use_custom_titlebar=None, titlebar_background_color=None, titlebar_text_color=None, titlebar_font=None, | |
| 19275 | 19277 | titlebar_icon=None, user_settings_path=None, pysimplegui_settings_path=None, pysimplegui_settings_filename=None, keep_on_top=None, dpi_awareness=None, scaling=None, disable_modal_windows=None, force_modal_windows=None, tooltip_offset=(None, None), | |
| 19276 | 19278 | sbar_trough_color=None, sbar_background_color=None, sbar_arrow_color=None, sbar_width=None, sbar_arrow_width=None, sbar_frame_color=None, sbar_relief=None, alpha_channel=None, | |
| 19277 | - hide_window_when_creating=None, use_button_shortcuts=None, watermark_text=None, win_app_id=None, set_tooltip_to_element_key=None): | ||
| 19279 | + hide_window_when_creating=None, use_button_shortcuts=None, watermark_text=None, win_app_id=None, set_tooltip_to_element_key=None, **kwargs): | ||
| 19278 | 19280 | """ | |
| 19279 | 19281 | :param icon: Can be either a filename or Base64 value. For Windows if filename, it MUST be ICO format. For Linux, must NOT be ICO. Most portable is to use a Base64 of a PNG file. This works universally across all OS's | |
| 19280 | 19282 | :type icon: bytes | str | |
@@ -19412,8 +19414,8 @@ def set_options(icon=None, button_color=None, element_size=(None, None), button_ | |||
| 19412 | 19414 | :type watermark_text: (str) | |
| 19413 | 19415 | :param win_app_id: For Windows only. Sets string that's passed to Windows to control combining icons on taskbar. Default is " mycompany.myproduct.subproduct.version". Windows with same ID combine on taskbar. Change before creating a window to set that window's ID. | |
| 19414 | 19416 | :type win_app_id: (str) | |
| 19415 | - :return: None | ||
| 19416 | - :rtype: None | ||
| 19417 | + :param **kwargs: The keyword args | ||
| 19418 | + :type **kwargs: (Any) | ||
| 19417 | 19419 | """ | |
| 19418 | 19420 | ||
| 19419 | 19421 | global DEFAULT_ELEMENT_SIZE | |
@@ -19704,8 +19706,8 @@ def set_options(icon=None, button_color=None, element_size=(None, None), button_ | |||
| 19704 | 19706 | except Exception as e: | |
| 19705 | 19707 | print('Error setting App ID', e) | |
| 19706 | 19708 | ||
| 19707 | - return True | ||
| 19708 | - | ||
| 19709 | + if len(kwargs) != 0: | ||
| 19710 | + print('set_options - bad parameter set', 'The parameter(s) used in set_options were not recognized options:\n', *[f' {key}={value}\n' for key, value in kwargs.items()]) | ||
| 19709 | 19711 | # ----------------------------------------------------------------- # | |
| 19710 | 19712 | ||
| 19711 | 19713 | # .########.##.....##.########.##.....##.########..######. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ def readme(): | |||
| 11 | 11 | ||
| 12 | 12 | setuptools.setup( | |
| 13 | 13 | name="pysimplegui", | |
| 14 | - version="6.3.7", | ||
| 14 | + version="6.3.8", | ||
| 15 | 15 | author="PySimpleGUI", | |
| 16 | 16 | author_email="PySimpleGUI@PySimpleGUI.org", | |
| 17 | 17 | description="Python GUIs for Humans. Launched in 2018. NEW LGPL3 Version 6 released in 2026.", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments