-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage_system.py
41 lines (30 loc) · 937 Bytes
/
page_system.py
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
""" Module for page System """
from kivy.lang import Builder
import globalcontent
Builder.load_string("""
#:import TemperaturePanel temperature.TemperaturePanel
#:import PowerWidget power.PowerWidget
<SystemPage>:
label: 'system'
icon: 'assets/icon_system.png'
Label:
text: 'SYSTEM'
AnchorLayout:
anchor_x: 'right'
anchor_y: 'bottom'
padding: [0, 0, 20, 10]
BoxLayout:
size: 95, 160
orientation: 'vertical'
spacing: 10
size_hint: None, None
PowerWidget:
conf: root.conf.get("power", {}) if root.conf else {}
mqttc: root.mqttc
TemperaturePanel:
id: temperatures
conf: root.conf.get("temperatures", {}) if root.conf else {}
mqttc: root.mqttc
""")
class SystemPage(globalcontent.ContentPage):
pass