This module contains the ProgressWidgetHandler class, which manages a group of widgets that show the progress of the calibration procedure while it is running.
The class listens to CalibrationStarted and CalibrationOver events to determine whether the calibration procedure is running. While it is running, it periodically obtains progress information from the responsible CalibrationManager, and uses this information to update two progress bars that show the estimated progress of the ongoing calibration stage and the calibration procedure as whole, and two labels that show the estimated time remaining for both.
The top-level container of these widgets can be accessed using the handler’s widget property. Clients also need to keep a reference to the handler itself to prevent it from being reclaimed as garbage, but need not otherwise deal with it.
The ProgressWidgetHandler allows clients to register additional gtk.ProgressBar and gtk.Label instances, however, which will then receive periodic progress updates as well.
Registers the given gtk.Label for periodic updates with the calibration procedure’s progress while it is running. The label’s text will be set to template if the remaining duration of the stage and the calibration procedure as a while are known, and to noTimeTemplate otherwise. The templates may include the following mapping keys: