-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathscreens.kv
executable file
·99 lines (81 loc) · 2.9 KB
/
screens.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
#:kivy 1.9.0
<ScreenOne>:
name: "screen1"
ScrollView:
pos_hint: {'bottom':1}
do_scroll_y: True
GridLayout:
name: "screen1"
cols: 1
padding: 0
spacing: 0
#size_hint: None, None
size_hint_y: None
height: self.minimum_height
Button:
text: "1"
background_color: (0.502, 0, 0.502, 1) if self.state == 'normal' else (0.502, 0, 0.502, .75)
on_release: root.onNextScreen(self, 'small')
Button:
text: "2"
background_color: (0, 0, 1, 1) if self.state == 'normal' else (0, 0, 1,.75)
on_release: root.onNextScreen(self, 'sample1')
Button:
text: "3"
background_color: (0.251, 0.878, 0.816, 1) if self.state == 'normal' else (0.251, 0.878, 0.816,.75)
on_release: root.onNextScreen(self, 'sample2')
Button:
text: "4"
background_color: (0, 0.502, 0, 1) if self.state == 'normal' else (0, 0.502, 0, .75)
on_release: root.onNextScreen(self, 'sample3')
Button:
text: "5"
background_color: (1, 1, 0, 1) if self.state == 'normal' else (1, 1, 0, .75)
on_release: root.onNextScreen(self, 'sample4')
Button:
text: "6"
background_color: (1, 0.843, 0,1) if self.state == 'normal' else (1, 0.843, 0,.75)
on_release: root.onNextScreen(self, 'sample5')
Button:
text: "7"
background_color: (1, 0.647, 0, 1) if self.state == 'normal' else (1, 0.647, 0, .75)
on_release: root.onNextScreen(self, 'sample6')
Button:
text: "8"
background_color: (1, 0.549, 0, 1) if self.state == 'normal' else (1, 0.549, 0, .75)
on_release: root.onNextScreen(self, 'sample7')
Button:
text: "9"
background_color: (1, 0, 0, 1) if self.state == 'normal' else (1, 0, 0, .75)
on_release: root.onNextScreen(self, 'sample8')
<ScreenTwo>:
GridLayout:
name: "ScreenGrid"
pos_hint: {'top': 1}
cols:1
rows:2
ActionBar:
pos_hint: {'top': 1}
height:'100sp'
ActionView:
ActionPrevious:
with_previous: True
on_release: root.onBackBtn()
<Manager>:
id: screen_manager
screen_one: screen_one
screen_two: screen_two
ScreenOne:
id: screen_one
name: 'screen1'
manager: screen_manager
ScreenTwo:
id: screen_two
name: 'screen2'
manager: screen_manager
<VideoPlayer>:
options: {'eos': 'loop'}
allow_stretch:True
<Button>:
height: '100sp'
size_hint_y: None