-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhomescreen.kv
65 lines (64 loc) · 1.38 KB
/
homescreen.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
<HomeScreen>:
canvas.before:
Rectangle:
size: self.size
pos: self.pos
source: "background.jpg"
FloatLayout:
Button:
canvas.before:
Color:
rgba: 1,1,1,1
Line:
width: 1
rectangle: self.x, self.y, self.width, self.height
text:"Folium"
size_hint: .1, .05
pos_hint: {"center_x": .1, "top": .95}
background_color: (1,1,1,0)
color: 1,1,1,1
on_release:
root.windowdraw()
Button:
canvas.before:
Color:
rgba: 1,1,1,1
Line:
width: 1
rectangle: self.x, self.y, self.width, self.height
text:"Altair"
size_hint: .1 ,.05
pos_hint: {"center_x": .27, "top": .95}
background_color: (1,1,1,0)
color: 1,1,1,1
on_release:
root.chartwindow()
Button:
canvas.before:
Color:
rgba: 1,1,1,1
Line:
width: 1
rectangle: self.x, self.y, self.width, self.height
text:"Spinner"
size_hint: .1 ,.05
pos_hint: {"center_x": .44, "top": .95}
background_color: (1,1,1,0)
color: 1,1,1,1
on_release:
root.parent.current = "spinner"
Button:
canvas.before:
Color:
rgba: 1,1,1,1
Line:
width: 1
rectangle: self.x, self.y, self.width, self.height
text:"Logout"
size_hint: .15 ,.05
pos_hint: {"center_x": .85, "top": .95}
background_color: (1,1,1,0)
color: 1,1,1,1
on_release:
root.parent.parent.log_out()
root.parent.current = "logout"