Progress Dialog#
Progress dialog for showing operation progress.
This module provides a progress dialog that can be used to show progress for long-running operations like folder scanning.
|
Progress dialog for showing operation progress. |
- class mdaviz.progress_dialog.AsyncProgressDialog(*args: Any, **kwargs: Any)[source]#
Asynchronous progress dialog that can be updated from background threads.
This dialog uses Qt’s signal/slot mechanism to safely update the UI from background threads.
- _update_progress_slot(current: int, total: int, message: str) None [source]#
Slot for thread-safe progress updates.
- fail_async(error_message: str) None [source]#
Mark operation as failed asynchronously.
- Parameters:
error_message (str): Error message
- message_updated#
alias of
str
- operation_failed#
alias of
str
- progress_updated#
alias of
int
- class mdaviz.progress_dialog.ProgressDialog(*args: Any, **kwargs: Any)[source]#
Progress dialog for showing operation progress.
This dialog provides a user-friendly way to show progress for long-running operations and allows users to cancel the operation.
- Attributes:
auto_close (bool): Whether to automatically close when complete auto_reset (bool): Whether to automatically reset when complete
- set_cancel_callback(callback: Callable[[], None]) None [source]#
Set a callback function to be called when the user cancels.
- Parameters:
callback (callable): Function to call when canceled