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

Method __delitem__

PySimpleGUI/PySimpleGUI.py:22919–22930  ·  view source on GitHub ↗

Delete an individual user setting. This is the same as calling delete_entry. The syntax for deleting the item using this manner is: del settings['entry'] :param item: The key for the setting to delete :type item: Any

(self, item)

Source from the content-addressed store, hash-verified

22917 return self.get(item, self.default_value)
22918
22919 def __delitem__(self, item):
22920 """
22921 Delete an individual user setting. This is the same as calling delete_entry. The syntax
22922 for deleting the item using this manner is:
22923 del settings['entry']
22924 :param item: The key for the setting to delete
22925 :type item: Any
22926 """
22927 if self.use_config_file:
22928 return self.get(item)
22929 else:
22930 self.delete_entry(key=item)
22931
22932
22933# Create a singleton for the settings information so that the settings functions can be used

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
delete_entryMethod · 0.95

Tested by

no test coverage detected