Classes
FileDialog | A dialog widget that allows the user to open and save files and |
Bases: enaml.widgets.toolkit_object.ToolkitObject
A dialog widget that allows the user to open and save files and directories.
The title to use for the dialog.
The mode of the dialog.
The selected path in the dialog. This value will be used to set the initial working directory and file, as appropriate, when the dialog is opened. It will aslo be updated when the dialog is closed and accepted.
The list of selected paths in the dialog. It will be updated when the dialog is closed and accepted. It is output only and is only applicable for the open_files mode.
The string filters used to restrict the user’s selections.
The selected filter from the list of filters. This value will be used as the initial working filter when the dialog is opened. It will also be updated when the dialog is closed and accepted.
Whether to use a platform native dialog, when available. This attribute is deprecated and no longer has any effect. Native dialogs are always used when available in a given toolkit.
An enum indicating if the dialog was accepted or rejected by the user. It will be updated when the dialog is closed. This value is output only.
An optional callback which will be invoked when the dialog is closed. This is a convenience to make it easier to handle a dialog opened in non-blocking mode. The callback must accept a single argument, which will be the dialog instance.
An event fired if the dialog is accepted. The payload will be the selected path.
An event fired when the dialog is rejected. It has no payload.
An event fired when the dialog is closed. It has no payload.
Whether to destroy the dialog widget on close. The default is True since dialogs are typically used in a transitory fashion.
A reference to the ProxyFileDialog object.