Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated main.py and added CSV file which gathers the student attendance #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions StudentDetails.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SERIAL NO.,,ID,,NAME
1,,asas,,asas
2,,002,,Kaustubh
3,,002,,Kaustubh
4,,002,,Kaustubh
Expand Down
25 changes: 21 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,22 @@ def psw():
######################################################################################

def clear():
global txt, txt2
txt.delete(0, 'end')
res = "1)Take Images >>> 2)Save Profile"
message1.configure(text=res)


def clear2():
global txt, txt2
txt2.delete(0, 'end')
res = "1)Take Images >>> 2)Save Profile"
message1.configure(text=res)

#######################################################################################

def TakeImages():
global txt, txt2
check_haarcascadefile()
columns = ['SERIAL NO.', '', 'ID', '', 'NAME']
assure_path_exists("StudentDetails/")
Expand Down Expand Up @@ -391,14 +394,28 @@ def TrackImages():
lbl = tk.Label(frame2, text="Enter ID",width=20 ,height=1 ,fg="black" ,bg="#00aeff" ,font=('times', 17, ' bold ') )
lbl.place(x=80, y=55)

txt = tk.Entry(frame2,width=32 ,fg="black",font=('times', 15, ' bold '))
txt.place(x=30, y=88)
# txt = tk.Entry(frame2,width=32 ,fg="black",font=('times', 15, ' bold '))
# txt.place(x=30, y=88)

lbl2 = tk.Label(frame2, text="Enter Name",width=20 ,fg="black" ,bg="#00aeff" ,font=('times', 17, ' bold '))
lbl2.place(x=80, y=140)
# # Suggested change:
txt = tk.Entry(frame2, width=32, fg="black", font=('times', 15, 'bold'))
txt.grid(row=1, column=0, padx=10, pady=58)
# txt = tk.Entry(frame2, width=32, fg="black", font=('times', 15, ' bold '))
# txt.grid(row=1, column=1, padx=10, pady=10)

# txt2 = tk.Entry(frame2, width=32, fg="black", font=('times', 15, ' bold '))
# txt2.grid(row=2, column=1, padx=10, pady=10)
# Suggested change:
# txt = tk.Entry(frame2, width=32, fg="black", font=('times', 15, 'bold'))
# txt.pack(padx=10, pady=10)

# txt2 = tk.Entry(frame2, width=32, fg="black", font=('times', 15, 'bold'))
# txt2.pack(padx=10, pady=10)
txt2 = tk.Entry(frame2, width=32, fg="black", font=('times', 15, 'bold'))
txt2.grid(row=2, column=0, padx=10, pady=1)

txt2 = tk.Entry(frame2,width=32 ,fg="black",font=('times', 15, ' bold ') )
txt2.place(x=30, y=173)

message1 = tk.Label(frame2, text="1)Take Images >>> 2)Save Profile" ,bg="#00aeff" ,fg="black" ,width=39 ,height=1, activebackground = "yellow" ,font=('times', 15, ' bold '))
message1.place(x=7, y=230)
Expand Down