euporie.core.widgets.file_browser
Define a file browser widget.
Functions
|
Register a new config item. |
|
Get the current active (running) Application. |
|
Check if a path is a directory. |
|
Accept both booleans and Filters as input and turn it into a Filter. |
Classes
|
Draw a border around any container. |
|
A clickable button widget. |
|
Wrapper around any other container that can change the visibility. |
|
Simple event to which event handlers can be attached. For instance::. |
|
Fast, lightweight cache which keeps at most size items. |
|
A file browser. |
|
A control for browsing a filesystem. |
|
Apply a style to child containers when focused or hovered. |
|
Several layouts, one stacked above/under the other. |
A container for a set of key bindings. |
|
Interface for a KeyBindings. |
|
|
A container which renders a stand-alone margin. |
|
|
|
Mouse event, sent to UIControl.mouse_handler. |
|
|
|
PurePath subclass that can make system calls. |
|
Complete for Path variables. |
|
|
|
Margin displaying a scrollbar. |
|
A text input widget. |
|
Content generated by a user control. |
Base class for all user interface controls. |
|
|
|
|
Several layouts, one stacked left/right of the other. |
|
Container that holds a control. |
|
- class euporie.core.widgets.file_browser.FileBrowser(path: Path | None = None, on_select: Callable[[Path], None] | None = None, on_open: Callable[[Path], None] | None = None, on_chdir: Callable[[Path], None] | None = None, width: AnyDimension = None, height: AnyDimension = None, style: str = '', show_address_bar: FilterOrBool = True)
Bases:
object
A file browser.
- completer = <prompt_toolkit.completion.filesystem.PathCompleter object>
- class euporie.core.widgets.file_browser.FileBrowserControl(path: Path | None = None, on_chdir: Callable[[FileBrowserControl], None] | None = None, on_select: Callable[[FileBrowserControl], None] | None = None, on_open: Callable[[FileBrowserControl], None] | None = None, window: Window | None = None)
Bases:
UIControl
A control for browsing a filesystem.
- property contents: list[tuple[bool, pathlib.Path]]
Return the contents of the current folder.
- get_invalidate_events() Iterable[Event[object]]
Return a list of Event objects. This can be a generator. (The application collects all these events, in order to bind redraw handlers to these events.)
- get_key_bindings() prompt_toolkit.key_binding.key_bindings.KeyBindingsBase | None
Key bindings specific to this user control.
- mouse_handler(mouse_event: MouseEvent) NotImplementedOrNone
Handle mouse events.
- euporie.core.widgets.file_browser.is_dir(path: str | pathlib.Path) bool | None
Check if a path is a directory.