Legend (hwx.gui)

A color coded legend.

A Legend widget contains color and labels. The items in the legend can be selected and an action performed. Legends are used to easily change between discrete values with associated colors.

For example, when defining the type of joint among three options (Active, Locked, Free).



Public Methods

clear (self)
setValues (self, values)

Property Details


List of values which are not deactivated (shown as transparent).

Pass True to activate or False to deactivate all.


List of (color, value, label) tuples populating the legend.

Method Details


Clears all the legends.

setValues(self, values)

List of legend properties to be set.

param values:A list of properties.
type values:list