-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirstpage.py
49 lines (29 loc) · 1.42 KB
/
firstpage.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
#import module from tkinter for UI
from tkinter import Tk, Label, Button
from _tkinter import *
import os
#creating instance of TK
root=Tk()
root.configure(background="#80D8FF")
#root.geometry("600x600")
def function1():
os.system("python training.py")
def function2():
os.system("python face_recognition.py")
def function3():
os.system("python face_datasets.py")
def function4():
os.system("python showdata.py")
#setting title for the window
root.title("AUTOMATIC ATTENDANCE MANAGEMENT USING FACE RECOGNITION")
#creating a text label
Label(root, text="Smart Attendance",font=("helvatica",40),fg="white",bg="#00BFA5",height=2).grid(row=0,rowspan=2,columnspan=2,padx=5,pady=5)
#creating a button
Button(root,text="Train DATABASE",font=("times new roman",30),bg="#3F51B5",fg='white',command=function1).grid(row=3,columnspan=2,padx=5,pady=5)
#creating second button
Button(root,text="Take Attendance",font=("times new roman",30),bg="#3F51B5",fg='white',command=function2).grid(row=4,columnspan=2,padx=5,pady=5)
#creating third button
Button(root,text="New Entry",font=('times new roman',30),bg="#3F51B5",fg="white",command=function3).grid(row=5,columnspan=2,padx=5,pady=5)
#creating fourth button
Button(root,text="View Attendance",font=('times new roman',30),bg="#3F51B5",fg="white",command=function4).grid(row=6,columnspan=2,padx=5,pady=5)
root.mainloop()