-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.py
27 lines (24 loc) · 904 Bytes
/
dashboard.py
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
from kivy.lang import Builder
from kivy.app import App
from kivy.uix.screenmanager import Screen
from kivy.core.window import Window
from kivy.utils import rgba
from colors import Colors
kv = Builder.load_file("dashboard.kv")
from FirebaseRealtimeDB import update_patient_info
class Dashboard(Screen):
def __init__(self, **kwargs):
super(Dashboard, self).__init__(**kwargs)
Window.clearcolor = rgba(*Colors.BEIGE, 1)
def update_creds(self, info):
info=[i.text for i in info]
infodic={"name": info[0],
"age": info[1],
"weight": info[2],
"height": info[3],
"blood type": info[4],
"dlid": info[5],
"medical conditions": info[6],
"allergies": info[7],
"medication": info[8],}
update_patient_info(infodic)