mafw.steering_gui.views.path_editor
Reusable line editor with a role-aware filesystem browse button.
Classes
|
Inline path editor whose browse action depends on a |
- class mafw.steering_gui.views.path_editor.PathEditor(parent: QWidget | None = None, role: PathRole = PathRole.INPUT_FILE, on_selected: Callable[[str], None] | None = None, on_browse_started: Callable[[], None] | None = None, on_browse_cancelled: Callable[[], None] | None = None)[source]
Bases:
QWidgetInline path editor whose browse action depends on a
PathRole.Build the editor for the given role.
- Parameters:
parent – Optional parent widget.
role – The browse behaviour to use; defaults to input-file selection.
on_selected – Optional callback for values chosen in a browse dialog.