gui.calibration.functions — Shows the estimation functions

This module contains the FunctionWidgetHandler class, which manages a group of widgets that display the estimation functions that have been fitted during the calibration procedure. If the functions haven’t been fitted yet, a label that states this is shown instead.

Clients need not actually deal with the FunctionWidgetHandler itself; instead, they can use the createFunctionWidgets() function, which creates the handler and returns the top-level container of the widgets used to show the functions. The functions will be automatically updated when the calibration data of the ProductionSystem passed to the function changes.


../../images/functions.png

gui.calibration.functions.createFunctionWidgets(system)
Creates a FunctionWidgetHandler and returns the top-level container of the widgets used to show the functions. system is the ProductionSystem whose estimation functions are to be shown.

The FunctionWidgetHandler Class

class gui.calibration.functions.FunctionWidgetHandler(system)
Creates a new instance of this class, which shows the estimation functions fitted for the given ProductionSystem.
FunctionWidgetHandler.widget
The top-level container of the widgets that show the estimation functions. Immutable.

Constants

gui.calibration.functions.CAPTION_TO_FUNCTION_SPACING
The amount of empty space used between a function’s caption and the function itself, in pixels.
gui.calibration.functions.FUNCTION_TO_CAPTION_SPACING
The amount of empty space used between a function and the caption for the next function, in pixels.