
Public Member Functions | |
| def | __init__ |
| def | add_and_set_filter |
| def | get_rectified_filename |
| def | run |
Public Attributes | |
| type | |
A dialog box to save or open flow graph files. This is a base class, do not use.
Definition at line 70 of file FileDialogs.py.
| def grc.gui.FileDialogs.FileDialog.__init__ | ( | self, | ||
current_file_path = '' | ||||
| ) |
FileDialog constructor.
| current_file_path | the current directory or path to the open flow graph |
Definition at line 73 of file FileDialogs.py.
| def grc.gui.FileDialogs.FileDialog.add_and_set_filter | ( | self, | ||
| filter | ||||
| ) |
Add the gtk file filter to the list of filters and set it as the default file filter.
| filter | a gtk file filter. |
Definition at line 94 of file FileDialogs.py.
| def grc.gui.FileDialogs.FileDialog.get_rectified_filename | ( | self | ) |
Run the dialog and get the filename. If this is a save dialog and the file name is missing the extension, append the file extension. If the file name with the extension already exists, show a overwrite dialog. If this is an open dialog, return a list of filenames.
Definition at line 102 of file FileDialogs.py.
| def grc.gui.FileDialogs.FileDialog.run | ( | self | ) |
Get the filename and destroy the dialog.
Definition at line 143 of file FileDialogs.py.
Definition at line 79 of file FileDialogs.py.
1.5.4