-
Notifications
You must be signed in to change notification settings - Fork 0
/
weatherapp.kv
executable file
·61 lines (61 loc) · 1.84 KB
/
weatherapp.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
<WeatherScreen>:
orientation: 'vertical'
Button:
text: "reload weather"
id: "weather_reload"
font_size: '100sp'
background_color: (1.0, 0.0, 0.0, 1.0)
on_press: root.reload()
GridLayout:
cols: 3
rows: 1
GridLayout:
cols: 1
rows: 3
LabelWithBackground:
canvas.before:
Rectangle:
pos: self.pos
size: self.size
text: 'min'
font_size: '75sp'
color: 1,0,0,1
id: temp_min
LabelWithBackground:
canvas.before:
Rectangle:
pos: self.pos
size: self.size
text: 'now'
font_size: '75sp'
color: 1,0,0,1
id: temp_now
LabelWithBackground:
canvas.before:
Rectangle:
pos: self.pos
size: self.size
text: 'max'
font_size: '75sp'
color: 1,0,0,1
id: temp_max
LabelWithBackground:
canvas.before:
Rectangle:
pos: self.pos
size: self.size
# source: "temp.jpg"
text: "Humidity"
color: 1,0,0,1
font_size: '75sp'
id: hum
LabelWithBackground:
canvas.before:
Rectangle:
pos: self.pos
size: self.size
# source: "temp.jpg"
text: "Wind speed"
color: 1,0,0,1
font_size: '75sp'
id: wind