-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathskins.py
More file actions
53 lines (51 loc) · 1.21 KB
/
skins.py
File metadata and controls
53 lines (51 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from __future__ import absolute_import, print_function, unicode_literals
from _Framework.Skin import Skin
from _Framework.ButtonElement import Color
from pushbase.colors import Rgb, Pulse, Blink
OFF = Color(0)
GREEN = Color(1)
GREEN_BLINK = Color(2)
RED = Color(3)
RED_BLINK = Color(4)
AMBER = Color(5)
AMBER_BLINK = Color(6)
class Colors:
class DefaultButton:
On = GREEN
Off = RED
Disabled = OFF
class Cue:
class GreenCue:
On = GREEN_BLINK
Off = GREEN
Disabled = OFF
class RedCue:
On = RED_BLINK
Off = RED
Disabled = OFF
class AmberCue:
On = AMBER_BLINK
Off = AMBER
Disabled = OFF
class Instrument:
On = GREEN
Off = AMBER
Disabled = OFF
class Mute:
On = RED
Off = OFF
Disabled = OFF
class Omni:
On = GREEN
Off = AMBER
Disabled = OFF
def make_skin():
return Skin(Colors)
def get_cue_button():
return Skin(Colors.Cue)
def get_instrument_button():
return Skin(Colors.Instrument)
def get_mute_button():
return Skin(Colors.Mute)
def get_omni_button():
return Skin(Colors.Omni)