MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / set_location

Method set_location

PySimpleGUI/PySimpleGUI.py:22596–22609  ·  view source on GitHub ↗

Sets the location of the settings file :param filename: The name of the file to use. Can be a full path and filename or just filename :type filename: (str or None) :param path: The folder that the settings file will be stored in. Do not include the filename.

(self, filename=None, path=None)

Source from the content-addressed store, hash-verified

22594 return (full_filename, path, filename)
22595
22596 def set_location(self, filename=None, path=None):
22597 """
22598 Sets the location of the settings file
22599
22600 :param filename: The name of the file to use. Can be a full path and filename or just filename
22601 :type filename: (str or None)
22602 :param path: The folder that the settings file will be stored in. Do not include the filename.
22603 :type path: (str or None)
22604 """
22605 cfull_filename, cpath, cfilename = self._compute_filename(filename=filename, path=path)
22606
22607 self.filename = cfilename
22608 self.path = cpath
22609 self.full_filename = cfull_filename
22610
22611 def get_filename(self, filename=None, path=None):
22612 """

Callers 10

get_filenameMethod · 0.95
saveMethod · 0.95
loadMethod · 0.95
delete_fileMethod · 0.95
write_new_dictionaryMethod · 0.95
delete_entryMethod · 0.95
setMethod · 0.95
getMethod · 0.95
get_dictMethod · 0.95
user_settings_filenameFunction · 0.80

Calls 1

_compute_filenameMethod · 0.95

Tested by

no test coverage detected