tslumd.tallyobj

class tslumd.tallyobj.Tally(*args, **kwargs)[source]

Bases: pydispatch.dispatch.Dispatcher

A single tally object

Properties
rh_tally: TallyColorProperty(TallyColor)

State of the “right-hand” tally indicator

txt_tally: TallyColorProperty(TallyColor)

State of the “text” tally indicator

lh_tally: TallyColorProperty(TallyColor)

State of the “left-hand” tally indicator

brightness: intProperty(int)

Tally indicator brightness from 0 to 3

text: strProperty(str)

Text to display

Events
on_update(instance: Tally, props_changed: Sequence[str])

Fired when any property changes

property indexint   [read-only]

Index of the tally object from 0 to 65534

classmethod from_display(display: tslumd.Display)Tally[source]

Create an instance from the given Display object

update(**kwargs)Set[str][source]

Update any known properties from the given keyword-arguments

Returns

The property names, if any, that changed

Return type

set

update_from_display(display: tslumd.messages.Display)Set[str][source]

Update this instance from the values of the given Display object

Returns

The property names, if any, that changed

Return type

set

to_dict()Dict[source]

Serialize to a dict