Skip to content

FileEdit#

FileEdit widget

Available in backends:

Signals#

  • changed(object) - Emitted with self when any sub-widget in the container changes.
  • label_changed(str) - Emitted when the widget label changes.
  • native_parent_changed(object) - Emitted with the backend widget when the widget parent changes.

FileEdit #

Bases: Container

A LineEdit widget with a button that opens a FileDialog.

Parameters:

  • mode (FileDialogMode or str, default: EXISTING_FILE ) –
    • 'r' returns one existing file.
    • 'rm' return one or more existing files.
    • 'w' return one file name that does not have to exist.
    • 'd' returns one existing directory.
  • filter (str, default: None ) –

    The filter is used to specify the kind of files that should be shown. It should be a glob-style string, like '*.png' (this may be backend-specific)

mode: FileDialogMode property writable #

Mode for the FileDialog.

value: tuple[Path, ...] | Path | None property writable #

Return current value of the widget. This may be interpreted by backends.

__repr__() -> str #

Return string representation.