-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui.py
55 lines (40 loc) · 1014 Bytes
/
gui.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
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
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.button import Button
from kivy.properties import ObjectProperty
from kivy.uix.gridlayout import GridLayout
import Motion_Detector
import low_light
import Low_light_reading
import hc2
from os import listdir
kv_path = './kv/'
for kv in listdir(kv_path):
Builder.load_file(kv_path+kv)
class MDButton(Button):
pass
class POCRButton(Button):
pass
class LLRButton(Button):
pass
class HCButton(Button):
pass
class Container(GridLayout):
display = ObjectProperty()
def MD(self):
Motion_Detector.MD()
pass
def POCR(self):
low_light.PTS()
pass
def LLR(self):
Low_light_reading.LLR()
def HC(self):
hc2.HC()
class MainApp(App):
def build(self):
self.title = 'Vision: A Help For the Visually Challenged'
return Container()
if __name__ == "__main__":
app = MainApp()
app.run()