|
| def | __init__ (self, worker.Controller controller, bool delete_progress_bar_on_finish=True, bool close_on_finish=False, float auto_close_timeout=0.5, str title="", int ui_update_interval=100) |
| |
| def | start (self) |
| |
◆ __init__()
| def ayon_bin_distro.gui.progress_ui.ProgressDialog.__init__ |
( |
|
self, |
|
|
worker.Controller |
controller, |
|
|
bool |
delete_progress_bar_on_finish = True, |
|
|
bool |
close_on_finish = False, |
|
|
float |
auto_close_timeout = 0.5, |
|
|
str |
title = "", |
|
|
int |
ui_update_interval = 100 |
|
) |
| |
Class to display the progress of the worker.Controller to a user.
Args:
controller (worker.Controller): controller that should be monitored
delete_progress_bar_on_finish (bool): to allow for progress bars to be deleted when they finished
close_on_finish (bool): to decided if the Gui needs to be closed manually
auto_close_timeout (float): timeout value for how long the GUI should exist after all process bars have finished
title (str): GUI window title
ui_update_interval (int): defines the interval that is used to ask the `worker.Controller` for the current state of the tasks
◆ _update_progress_elements()
| def ayon_bin_distro.gui.progress_ui.ProgressDialog._update_progress_elements |
( |
|
self | ) |
|
|
private |
calls the MultiProgressWidget to update the process bars, or closes the GUI if all work has finished (sleeps the current thread until timeout has been reached to close the GUI).
◆ start()
| def ayon_bin_distro.gui.progress_ui.ProgressDialog.start |
( |
|
self | ) |
|
starts the controller and directly displays the GUI on the current thread
The documentation for this class was generated from the following file: