shared.ui.feedback

Classes

Module Contents

class Feedback(parent: tik.shared.ui.Qt.QtWidgets.QWidget | None = None)
browse_directory(modal: bool = True) str | None

Browse for a directory.

Deprecated: Consider moving to a utility function.

pop_error(title: str = 'Error', text: str = '', details: str = '', modal: bool = True, on_close: collections.abc.Callable[[int], None] | None = None) int

Show an error dialog box.

pop_info(title: str = 'Info', text: str = '', details: str = '', critical: bool = False, modal: bool = True, on_close: collections.abc.Callable[[int], None] | None = None) int

Show an informational dialog box.

Args:

title: The title of the dialog. text: The main text. details: The informative text (smaller). critical: If True, shows a critical icon. modal: If True, the dialog is modal. on_close: Optional callback to run when closed.

Returns:

The result code from the dialog execution.

pop_question(title: str = 'Question', text: str = '', details: str = '', buttons: list[str] | None = None, modal: bool = True) str | None

Show a question dialog box with configurable buttons.

Args:

title: The title of the dialog. text: The main text. details: The informative text. buttons: List of button keys (e.g., “save”, “cancel”). modal: If True, the dialog is modal.

Returns:

The key of the clicked button, or None.

parent = None
result: str | None = None