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

add new feature #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
20 changes: 10 additions & 10 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@ def tick():
###################################################################################

def contact():
mess._show(title='Contact us', message="Please contact us on : 'xxxxxxxxxxxxx@gmail.com' ")
mess.showinfo(title='Contact us', message="Please contact us on : 'xxxxxxxxxxxxx@gmail.com' ")

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

def check_haarcascadefile():
exists = os.path.isfile("haarcascade_frontalface_default.xml")
if exists:
pass
else:
if not exists:

mess._show(title='Some file missing', message='Please contact us for help')
window.destroy()

Expand Down Expand Up @@ -77,12 +76,12 @@ def save_pass():
###################################################################################

def change_pass():
global master
global master,old, new, nnew
master = tk.Tk()
master.geometry("400x160")
master.resizable(False,False)
master.title("Change Password")
master.configure(background="white")
master.configure(background="Black")
lbl4 = tk.Label(master,text=' Enter Old Password',bg='white',font=('times', 12, ' bold '))
lbl4.place(x=10,y=10)
global old
Expand Down Expand Up @@ -424,13 +423,14 @@ def TrackImages():

##################### MENUBAR #################################

menubar = tk.Menu(window,relief='ridge')
menubar = tk.Menu(window,relief='ridge',font=('times', 12, 'bold'))
filemenu = tk.Menu(menubar,tearoff=0)
filemenu.add_command(label='Change Password', command = change_pass)
filemenu.add_command(label='Contact Us', command = contact)
filemenu.add_command(label='Exit',command = window.destroy)
menubar.add_cascade(label='Help',font=('times', 29, ' bold '),menu=filemenu)


################## TREEVIEW ATTENDANCE TABLE ####################

tv= ttk.Treeview(frame1,height =13,columns = ('name','date','time'))
Expand All @@ -440,9 +440,9 @@ def TrackImages():
tv.column('time',width=133)
tv.grid(row=2,column=0,padx=(0,0),pady=(150,0),columnspan=4)
tv.heading('#0',text ='ID')
tv.heading('name',text ='NAME')
tv.heading('date',text ='DATE')
tv.heading('time',text ='TIME')
tv.heading('name',text ='NAME', anchor=tk.CENTER)
tv.heading('date',text ='DATE', anchor=tk.CENTER)
tv.heading('time',text ='TIME', anchor=tk.CENTER)

###################### SCROLLBAR ################################

Expand Down