import enum
from typing import Tuple
__all__ = ('TallyColor', 'TallyType', 'TallyState', 'MessageType', 'TallyKey')
[docs]class TallyColor(enum.IntEnum):
"""Color enum for tally indicators"""
OFF = 0 #: Off
RED = 1 #: Red
GREEN = 2 #: Green
AMBER = 3 #: Amber
[docs]class TallyType(enum.Enum):
"""Enum for the three tally display types in the UMD protocol
"""
no_tally = 0 #: No-op
rh_tally = 1 #: "Right-hand" tally
txt_tally = 2 #: "Text" tally
lh_tally = 3 #: "Left-hand" tally
[docs]class TallyState(enum.IntFlag):
OFF = 0 #: Off
PREVIEW = 1 #: Preview
PROGRAM = 2 #: Program
[docs]class MessageType(enum.Enum):
"""Message type
.. versionadded:: 0.0.2
"""
_unset = 0
display = 1 #: A message containing tally display information
control = 2 #: A message containing control data
TallyKey = Tuple[int, int]
"""A tuple of (:attr:`screen_index <.Screen.index>`,
:attr:`tally_index <.Tally.index>`) to uniquely identify a single :class:`.Tally`
within its :class:`.Screen`
"""