organoid_tracker.gui.progress_bar module

class organoid_tracker.gui.progress_bar.ProgressBar

Bases: object

Abstract class for progress bars. Concrete implementations must implement the methods below.

NO_OP: ProgressBar = <organoid_tracker.gui.progress_bar._NoOpProgressBar object>
set_busy()

Set the progress bar to a busy state, e.g. by showing an animation. At this point, it is not known how far along the task is.

set_error()

Sets the progress bar to an error state.

set_progress(progress: Optional[int])

Sets the progress. 0 is fully empty, 100 is fully done. None is equivalent to calling set_busy()