shared.ui.feedback ================== .. py:module:: shared.ui.feedback Classes ------- .. autoapisummary:: shared.ui.feedback.Feedback Module Contents --------------- .. py:class:: Feedback(parent: tik.shared.ui.Qt.QtWidgets.QWidget | None = None) .. py:method:: browse_directory(modal: bool = True) -> str | None Browse for a directory. Deprecated: Consider moving to a utility function. .. py:method:: 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. .. py:method:: 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. .. py:method:: 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. .. py:attribute:: parent :value: None .. py:attribute:: result :type: str | None :value: None