-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.kv
executable file
·110 lines (108 loc) · 3.49 KB
/
main.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
101
102
103
104
105
106
107
108
109
110
#:import utils kivy.utils
#:import MyImage image
#:import MyLabel label
<MainScreen>:
canvas.before:
Rectangle:
pos: self.pos
size: self.size
source: 'images/background.jpg'
FloatLayout:
Image:
source: 'images/logo.png'
size_hint: (.6,.62)
center_x: self.parent.center_x
pos_hint: {'x': .2,'y':.52 }
allow_stretch: True
MyImage:
id: 'programacao'
source: 'images/programbtn.png'
size_hint: (.4,None)
center_x: self.parent.center_x
pos_hint: {'x': .3,'y':.52}
allow_stretch: True
on_press: app.root.current = 'programacao'
on_release: app.NextScreen('main')
MyImage:
source: 'images/notify.png'
size_hint: (.6,None)
center_x: self.parent.center_x
pos_hint: {'x': .2,'y':.32}
allow_stretch: True
on_press: root.NotifyPopup()
MyImage:
source: 'images/sw.png'
size_hint: (.3,None)
center_x: self.parent.center_x
pos_hint: {'x': .725,'y':.01 }
allow_stretch: True
on_press: app.root.current = 'startup'
on_release: app.NextScreen('')
<ProgramScreen>:
canvas.before:
Color:
rgb: utils.get_color_from_hex('#02a28f')
Rectangle:
pos: self.pos
size: self.size
Image:
source: 'images/program.png'
size_hint: (.6,.67)
center_x: self.parent.center_x
pos_hint: {'x': .2,'y':.6}
allow_stretch: True
Image:
source: 'images/bg.png'
size_hint: (.14,.14)
center_x: self.parent.center_x
pos_hint: {'x': .03,'y':.87}
allow_stretch: True
<MainScreenSW>:
canvas.before:
Rectangle:
pos: self.pos
size: self.size
source: 'images/backgroundsw.jpg'
FloatLayout:
Image:
source: 'images/logo3.png'
size_hint: (.6,.62)
center_x: self.parent.center_x
pos_hint: {'x': .2,'y':.52 }
allow_stretch: True
MyImage:
id: 'programacao'
source: 'images/program2.png'
size_hint: (.4,None)
center_x: self.parent.center_x
pos_hint: {'x': .3,'y':.52}
allow_stretch: True
on_press: app.root.current = 'programacaosw'
on_release: app.NextScreen('startup')
MyImage:
source: 'images/notify2.png'
size_hint: (.6,None)
center_x: self.parent.center_x
pos_hint: {'x': .2,'y':.32}
allow_stretch: True
on_press: root.NotifyPopup()
MyImage:
source: 'images/etcpan.png'
size_hint: (.3,None)
center_x: self.parent.center_x
pos_hint: {'x': .725,'y':.01 }
allow_stretch: True
on_press: app.root.current = 'main'
on_release: app.NextScreen('')
<ProgramScreensw>:
canvas.before:
Rectangle:
pos: self.pos
size: self.size
source: 'images/backgroundsw.jpg'
Image:
source: 'images/programsw.png'
size_hint: (.6,.67)
center_x: self.parent.center_x
pos_hint: {'x': .2,'y':.6}
allow_stretch: True