MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / user_settings_set_entry

Function user_settings_set_entry

PySimpleGUI/PySimpleGUI.py:22980–22992  ·  view source on GitHub ↗

Sets an individual setting to the specified value. If no filename has been specified up to this point, then a default filename will be used. After value has been modified, the settings file is written to disk. :param key: Setting to be saved. Can be any valid dictionary key type

(key, value)

Source from the content-addressed store, hash-verified

22978
22979
22980def user_settings_set_entry(key, value):
22981 """
22982 Sets an individual setting to the specified value. If no filename has been specified up to this point,
22983 then a default filename will be used.
22984 After value has been modified, the settings file is written to disk.
22985
22986 :param key: Setting to be saved. Can be any valid dictionary key type
22987 :type key: (Any)
22988 :param value: Value to save as the setting's value. Can be anything
22989 :type value: (Any)
22990 """
22991 settings = UserSettings._default_for_function_interface
22992 settings.set(key, value)
22993
22994
22995def user_settings_delete_entry(key, silent_on_error=None):

Callers 2

settings_saveMethod · 0.85
_auto_save_locationMethod · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected