-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.kv
49 lines (44 loc) · 1.34 KB
/
ui.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
<MyLayout>:
orientation: 'vertical'
padding: 0
spacing: 0
size: root.width, root.height
GridLayout:
rows: 3
RelativeLayout:
size_hint: 1, 1
pos_hint: 1, 1
AndroidCamera:
index: 0
id: a_cam
resolution: self.camera_resolution
allow_stretch: True
play: True
canvas.before:
PushMatrix
Rotate:
angle: -90
origin: self.center
Scale:
x: self.cam_ratio
y: self.cam_ratio
origin: self.center
canvas.after:
PopMatrix
Label:
size_hint: 1, 0.1
id: fps_text
text_size: self.size
halign: 'left'
valign: 'bottom'
font_size: self.height * 0.1
text: ''
padding_x: 20
padding_y: 0
Button:
size_hint: 1, 0.2
id: text_out
font_size: self.height * 0.1
text: ''
on_release:
self.interact()