Data.get_filename

Data.get_filename(mode)

Force the user to choose a new filename using a system dialog box.

Parameters:
  • datafile (Data) – Data object to work with if not being used as a bound method.

  • mode (string) – The mode of file operation to be used when calling the dialog box

Returns:

str – The new filename

Note

The filename attribute of the current instance is updated by this method as well.