-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy.kv
60 lines (54 loc) · 1.69 KB
/
my.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
<MyWidget>:
orientation: 'vertical'
id: Parking Pixels
markup: True
video: video_widget.__self__
Video:
id: video_widget
source: 'background.mp4'
options: {'fit_mode': 'contain'}
state: 'play'
options: {'eos': 'loop'}
allow_stretch: True
size_hint: (1, 1)
Label:
id: title_label
markup: True
text: '[font=times]PARKING \nPIXELS[/font]'
font_size: '70sp'
bold: True
color: (1, 1, 0, 1) # Yellow color
pos_hint: {'center_x': 0.5, 'center_y': 0.7}
halign: 'center'
MDRoundFlatButton:
id: btn1
text: '[font=times]Select Video[/font]'
size_hint: (0.2, 0.05)
md_bg_color: (1, 1, 0, 1) # Yellow color
text_color: (0, 0, 0, 1) # Black text color
font_size: '20sp'
pos_hint: {'center_x': 0.5, 'center_y': 0.3}
background_color: (1,0,0,1)
on_press: root.select_video()
MDRoundFlatButton:
id: btn2
text: '[font=times]Add Region[/font]'
size_hint: (0.2, 0.05)
md_bg_color: (1, 1, 0, 1) # Yellow color
text_color: (0, 0, 0, 1) # Black text color
font_size: '20sp'
opacity: 0
disabled: True
pos_hint: {'center_x': 0.5, 'center_y': 0.2}
on_press: root.set_region()
MDRoundFlatButton:
id: btn3
text: '[font=times]Detect[/font]'
size_hint: (0.2, 0.05)
md_bg_color: (1, 1, 0, 1) # Yellow color
text_color: (0, 0, 0, 1) # Black text color
font_size: '20sp'
opacity: 0
disabled: True
pos_hint: {'center_x': 0.5, 'center_y': 0.1}
on_press: root.detect()