Filebrowser


class flexx.ui.FileBrowserWidget(*args, **kwargs)

Inherits from: PyWidget

A PyWidget to browse the file system. Experimental. This could be the basis for a file open/save dialog.

properties: path

methods: selected, set_path

path

StringProp – The currectly shown directory (settable). Defaults to the user directory.

selected

emitter – Emitter that fires when the user selects a file. The emitted event has a “filename” attribute.

set_path

action – Set the current path. If an invalid directory is given, the path is not changed. The given path can be absolute, or relative to the current path.