cut 3.4.1-rc1
Loading...
Searching...
No Matches
taurus.taurusledarray.TaurusLedArrayController Class Reference

Controller for TaurusLedArray that handles Taurus model data binding. More...

Public Member Functions

 __init__ (self, widget)
 Initialize the controller.
 

Protected Member Functions

 _updateForeground (self, widget)
 Read the Taurus model value and update the LED states.
 

Detailed Description

Controller for TaurusLedArray that handles Taurus model data binding.

Reads the Taurus model's value and maps it to the LED states using TaurusBaseController._updateForeground. Supports boolean vectors, integers (converted to bit vectors), and string arrays.

Constructor & Destructor Documentation

◆ __init__()

taurus.taurusledarray.TaurusLedArrayController.__init__ ( self,
widget )

Initialize the controller.

Parameters
widgetTaurusLedArray widget instance to control.

Member Function Documentation

◆ _updateForeground()

taurus.taurusledarray.TaurusLedArrayController._updateForeground ( self,
widget )
protected

Read the Taurus model value and update the LED states.

Supports boolean, integer, and string data types. For single values, the value is converted to a bit vector. For arrays, each element maps to an LED state.

Parameters
widgetTaurusLedArray widget instance to update.

The documentation for this class was generated from the following file: