Sets the filename and path for your settings file. Either paramter can be optional. If you don't choose a path, one is provided for you that is OS specific Windows path default = users/name/AppData/Local/PySimpleGUI/settings. If you don't choose a filename, your a
(self, filename=None, path=None)
| 22609 | self.full_filename = cfull_filename |
| 22610 | |
| 22611 | def get_filename(self, filename=None, path=None): |
| 22612 | """ |
| 22613 | Sets the filename and path for your settings file. Either paramter can be optional. |
| 22614 | |
| 22615 | If you don't choose a path, one is provided for you that is OS specific |
| 22616 | Windows path default = users/name/AppData/Local/PySimpleGUI/settings. |
| 22617 | |
| 22618 | If you don't choose a filename, your application's filename + '.json' will be used. |
| 22619 | |
| 22620 | Normally the filename and path are split in the user_settings calls. However for this call they |
| 22621 | can be combined so that the filename contains both the path and filename. |
| 22622 | |
| 22623 | :param filename: The name of the file to use. Can be a full path and filename or just filename |
| 22624 | :type filename: (str or None) |
| 22625 | :param path: The folder that the settings file will be stored in. Do not include the filename. |
| 22626 | :type path: (str or None) |
| 22627 | :return: The full pathname of the settings file that has both the path and filename combined. |
| 22628 | :rtype: (str) |
| 22629 | """ |
| 22630 | if filename is not None or path is not None or (filename is None and path is None and self.full_filename is None): |
| 22631 | self.set_location(filename=filename, path=path) |
| 22632 | self.read() |
| 22633 | return self.full_filename |
| 22634 | |
| 22635 | def save(self, filename=None, path=None): |
| 22636 | """ |
no test coverage detected