This repository was archived by the owner on Oct 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpytron.kv
100 lines (100 loc) · 2.23 KB
/
pytron.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<RootContainer>:
orientation: 'vertical'
padding: 10
canvas.before:
Color:
rgb: 0.0, 0.0, 0.0
Rectangle:
pos: self.pos
size: self.size
Label:
canvas.before:
Color:
rgb: .0, .0, .0
Rectangle:
pos: self.pos
size: self.size
size_hint:(0.5, 0.12)
pos: (0, 432)
text: 'Samsung TV Control Panel'
color: (0.365, 0.616, 0.706, 1.0)
font_size: 28
text_size: self.size
halign: 'left'
valign: 'middle'
Label:
canvas.before:
Color:
rgb: .0, .0, .0
Rectangle:
pos: self.pos
size: self.size
size_hint:(.5, 0.12)
pos: (400, 432)
text: '12:30pm'
color: (0.365, 0.616, 0.706, 1.0)
font_size: 28
text_size: self.size
halign: 'right'
valign: 'middle'
id: label_time
BoxLayout:
size_hint:(1.0, 0.33)
pos: (0, 260)
id: boxlayout_h
spacing: 10
padding: 10
orientation: 'horizontal'
Label:
text: 'Display:'
font_size: 28
ToggleButton:
id: powerOn
text: 'On'
group: 'power'
font_size: 28
bold: True
on_press: root.btn_power_on_touched()
ToggleButton:
id: powerOff
text: 'Off'
group: 'power'
font_size: 28
bold: True
on_press: root.btn_power_off_touched()
BoxLayout:
orientation: 'horizontal'
size_hint:(1.0, 0.33)
pos: (0, 113)
spacing: 10
padding: 10
Label:
text: 'Input Source:'
font_size: 28
ToggleButton:
id: hdmi1
text: 'Lab PC'
group: 'source'
font_size: 28
bold: True
on_press: root.btn_source_hdmi1_touched()
ToggleButton:
id: hdmi2
text: 'Guest Laptop'
group: 'source'
font_size: 28
bold: True
on_press: root.btn_source_hdmi2_touched()
background_inactive: (0, 0, 0, 1.0)
BoxLayout:
orientation: 'vertical'
size_hint:(1.0, 0.20)
pos: (0, 10)
Label:
text: 'Volume:'
font_size: 28
VolumeSlider:
id: volume
range: (0, 75)
step: 1
on_value: root.set_volume(*args)