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

control: bytesProperty(bytes)

Any control data received for the tally indicator

normalized_brightness: floatProperty(float)

The brightness value normalized as a float from 0.0 to 1.0

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

Fired when any property changes

on_control(instance: Tally, data: bytes)

Fired when control data is received for the tally indicator

New in version 0.0.2: The on_control event

property indexint   [read-only]

Index of the tally object from 0 to 65534 (0xfffe)

property is_broadcastbool   [read-only]

True if the tally is to be “broadcast”, meaning sent to all display indices.

(if the index is 0xffff)

New in version 0.0.2.

classmethod broadcast(**kwargs)tslumd.tallyobj.Tally[source]

Create a broadcast tally

(with index set to 0xffff)

New in version 0.0.2.

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