-
Notifications
You must be signed in to change notification settings - Fork 0
/
enigma.kv
70 lines (68 loc) · 1.76 KB
/
enigma.kv
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<EnigmaWindow>:
# background
canvas.before:
Color:
rgba: (66/255, 66/255, 79/255, 1)
Rectangle:
pos: self.pos
size: self.size
orientation: 'vertical'
spacing: 50
AnchorLayout:
anchor_x: 'center'
anchor_y: 'bottom'
size_hint_y: .34
BoxLayout:
size_hint: (None, None)
size: (680, 200)
orientation: 'horizontal'
spacing: 40
Knob:
id: knob1
Knob:
id: knob2
Knob:
id: knob3
AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'
size_hint_y: .58
GridLayout:
size_hint: (None, None)
size: (900 + 20 * 8, 300 + 20 * 2)
id: lamps
cols: 9
spacing: 20
<ColoredLabel>:
color: (64/255, 64/255, 64/255, 1.0)
font_size: 40
size_hint: (None, None)
size: (100, 100)
canvas.before:
Color:
rgba: (0.6, 0.6, 0.6, 1)
Ellipse:
pos: self.pos
size: self.size
Color:
rgba: self.bgcolor
Ellipse:
pos: (self.pos[0] + self.thickness / 2, self.pos[1] + self.thickness / 2)
size: (self.size[0] - self.thickness, self.size[1] - self.thickness)
<Knob>:
size_hint: (None, None)
size: 200, 200
value: 0
min: 0
max: 26
step: 1
knobimg_source: "img/knob_black.png"
markeroff_color: 0.0, 0.0, 0.0, 1
knobimg_size: 0.9
marker_img: "img/bline3.png"
show_marker: False
Label:
text: list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")[(int(self.parent.value))]
center: self.parent.center
font_size: 40
color: 1, 150/255, 0.0, 1