-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathems_dinput.kv
52 lines (39 loc) · 1.56 KB
/
ems_dinput.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
<EMSDinput>:
name: 'ems dinput'
############################## EMS INPUT LABEL ##############################
GridLayout:
cols: 1
pos_hint: {"top": 1}
padding: 0, 50, 0, 25
Label:
text: "Access Info"
font_size: min(self.width*0.3, self.height) * 0.5
font_name: 'Roboto-Bold'
color: rgba(Colors.BLUE)
Widget:
Widget:
Label:
text: "Enter Patient Drivers License #"
font_size: min(self.width*0.2, self.height) * 0.35
font_name: 'Roboto-Bold'
color: rgba(Colors.ACCENT_BLUE)
TextInput:
id: license
font_size: min(self.width*0.3, self.height) * 0.4
size_hint: (.7, .5)
canvas.after:
Color:
rgb: rgba(Colors.BLUE)
Line:
width: 2
rectangle: self.x, self.y, self.width, self.height
Button:
text: "Check"
color: rgba(Colors.BLUE)
background_normal: '' #https://stackoverflow.com/a/49100826/12514570
text: 'Enter'
font_size: min(self.width*0.3, self.height) * 0.5
on_press:
root.manager.current = 'ems dashboard' if root.check_dl_num(license.text) else 'ems dinput'
background_color: rgba(Colors.LIGHT_BLUE)
Widget: