2.14. ProgressWatcher

2.14.1. Detailed Description

Progress indication class for different complex operations which might take a long time (e.g. rendering, exporting, etc.).

There are 4 main Qt signals:

  • started(): The signal being emitted when operation starts.

  • progress_status(int): The signal being emitted during operation.

  • progress_message(unicode): Verbose signal being emitted during operation.

  • finished(): The signal being emitted when operation ends.

class mocha.project.ProgressWatcher([parent=None])

Create a global progress watcher instance which reflects the mocha progress bar behaviour.

ProgressWatcher.finished()
ProgressWatcher.progress_message(message)
ProgressWatcher.progress_status(progress)
ProgressWatcher.started()