MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / get_dict

Method get_dict

PySimpleGUI/PySimpleGUI.py:22875–22890  ·  view source on GitHub ↗

Returns the current settings dictionary. If you've not setup the filename for the settings, a default one will be used and then read. Note that you can display the dictionary in text format by printing the object itself. :return: The current settings dictionary

(self)

Source from the content-addressed store, hash-verified

22873 return value
22874
22875 def get_dict(self):
22876 """
22877 Returns the current settings dictionary. If you've not setup the filename for the
22878 settings, a default one will be used and then read.
22879
22880 Note that you can display the dictionary in text format by printing the object itself.
22881
22882 :return: The current settings dictionary
22883 :rtype: Dict
22884 """
22885 if self.full_filename is None:
22886 self.set_location()
22887 if self.autosave or self.dict == {}:
22888 self.read()
22889 self.save()
22890 return self.dict
22891
22892 def __setitem__(self, item, value):
22893 """

Callers 1

user_settingsFunction · 0.80

Calls 3

set_locationMethod · 0.95
readMethod · 0.95
saveMethod · 0.95

Tested by

no test coverage detected