1
+ #:kivy 1.11.1
2
+ <LoginScreen> : # widgets for the UI class in LoginScreen
3
+ name:" loginScreen"
4
+ FloatLayout:
5
+ size: 700 ,600
6
+ Label:
7
+ id :' unameLabel'
8
+ text:' Enter Username : '
9
+ pos_hint:{' top' : 0.9 ,' right' : 0.3 }
10
+ size_hint : 0.05 ,0.05
11
+ font_size : 25
12
+ TextInput:
13
+ id :' uname'
14
+ size_hint: (None , None )
15
+ height:50
16
+ width:400
17
+ pos_hint:{' top' : 0.92 ,' right' : 0.9 }
18
+ font_size : 25
19
+ multiline:False
20
+ Label:
21
+ id :' passwordLabel'
22
+ text:' Enter password : '
23
+ pos_hint:{' top' : 0.7 ,' right' : 0.3 }
24
+ size_hint : 0.05 ,0.05
25
+ font_size : 25
26
+ TextInput:
27
+ id :' password'
28
+ size_hint: (None , None )
29
+ height:50
30
+ width:400
31
+ pos_hint:{' top' : 0.72 ,' right' :0.9 }
32
+ font_size : 25
33
+ password: True
34
+ multiline:False
35
+ CheckBox:
36
+ id :' teacher'
37
+ pos_hint:{' top' : 0.5 ,' right' : 0.2 }
38
+ size_hint : 0.05 ,0.05
39
+ group:True
40
+ Label:
41
+ id :' teacherRadioButton'
42
+ text:' Teacher'
43
+ pos_hint:{' top' : 0.5 ,' right' : 0.3 }
44
+ size_hint : 0.05 ,0.05
45
+ font_size : 25
46
+ CheckBox:
47
+ id :' student'
48
+ pos_hint:{' top' : 0.4 ,' right' : 0.2 }
49
+ size_hint : 0.05 ,0.05
50
+ group:True
51
+ active:True
52
+ Label:
53
+ id :' studentRadioButton'
54
+ text:' Student'
55
+ pos_hint:{' top' : 0.4 ,' right' : 0.3 }
56
+ size_hint : 0.05 ,0.05
57
+ font_size : 25
58
+ Button:
59
+ id : ' signIn'
60
+ text:' Sign In'
61
+ pos_hint:{' top' : 0.2 ,' right' : 0.3 }
62
+ size_hint : 0.15 ,0.1
63
+ on_press: self .parent.parent.signIn()
64
+ Button:
65
+ id : ' exit'
66
+ text:' Exit'
67
+ pos_hint:{' top' : 0.2 ,' right' : 0.6 }
68
+ size_hint : 0.15 ,0.1
69
+ on_press: self .parent.parent.Exit()
70
+ <StudentScreen> : # widgets for the UI class in StudentScreen
71
+ name:" studentScreen"
72
+ FloatLayout:
73
+ size: 700 ,600
74
+ Label:
75
+ id :' studentWelcomeLabel'
76
+ text:' Hello'
77
+ pos_hint:{' top' : 0.95 ,' right' : 0.15 }
78
+ size_hint : 0.05 ,0.05
79
+ font_size : 25
80
+ Button:
81
+ id : ' logOut'
82
+ text:' Log Out'
83
+ pos_hint:{' top' : 0.97 ,' right' : 0.95 }
84
+ size_hint : 0.15 ,0.095
85
+ on_release: self .parent.parent.LogOutStudent()
86
+ Label:
87
+ id :' status'
88
+ text:' Error Marking Your Attendance'
89
+ pos_hint:{' top' : 0.5 ,' right' : 0.5 }
90
+ size_hint : 0.05 ,0.05
91
+ font_size : 25
92
+ <TeacherScreen> : # widgets for the UI class in TeacherScreen
93
+ name:" teacherScreen"
94
+ FloatLayout:
95
+ size: 700 ,600
96
+ Label:
97
+ id :' teacherWelcomeLabel'
98
+ text:' Hello'
99
+ pos_hint:{' top' : 0.95 ,' right' : 0.15 }
100
+ size_hint : 0.05 ,0.05
101
+ font_size : 25
102
+ Button:
103
+ id : ' logOut'
104
+ text:' Log Out'
105
+ pos_hint:{' top' : 0.97 ,' right' : 0.95 }
106
+ size_hint : 0.15 ,0.095
107
+ on_release: self .parent.parent.LogOutTeacher()
108
+ Label:
109
+ id :' divLabel'
110
+ text:' Enter div : '
111
+ pos_hint:{' top' : 0.7 ,' right' : 0.3 }
112
+ size_hint : 0.05 ,0.05
113
+ font_size : 25
114
+ TextInput:
115
+ id :' div'
116
+ size_hint: (None , None )
117
+ height:50
118
+ width:115
119
+ pos_hint:{' top' : 0.72 ,' right' : 0.55 }
120
+ font_size : 25
121
+ multiline:False
122
+ Label:
123
+ id :' subjectLabel'
124
+ text:' Select Subject : '
125
+ pos_hint:{' top' : 0.5 ,' right' : 0.26 }
126
+ size_hint : 0.05 ,0.05
127
+ font_size : 25
128
+ Button:
129
+ id : ' logAttendance'
130
+ text:' Log Attendance'
131
+ pos_hint:{' top' : 0.3 ,' right' : 0.5 }
132
+ size_hint : 0.15 ,0.095
133
+ on_release: self .parent.parent.LogAttendance()
0 commit comments