-
Notifications
You must be signed in to change notification settings - Fork 0
/
help.py
44 lines (32 loc) · 1.61 KB
/
help.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
import webbrowser
from tkinter import *
from tkinter import ttk
from PIL import Image, ImageTk
from tkinter import messagebox
import mysql.connector
import cv2
class Help:
def __init__(self, root):
self.root = root
self.root.geometry("1540x790+0+0")
self.root.title("Face_Recognition_System")
self.root.iconbitmap('assets/logo_PI6_icon.ico')
title_lbl = Label(self.root,text="HELP",font=("times new roman",25,"bold"),bg="black",fg="white")
title_lbl.place(x=0,y=0,width=1540,height=45)
Back_Button = Button(title_lbl, text="Back", command=self.root.destroy, font=("times new roman",11,"bold"),width=17,bg="darkblue",fg="white")
Back_Button.pack(side=RIGHT)
img_top = Image.open(r".\assets\Help.jpg")
img_top = img_top.resize((1540,740),Image.LANCZOS)
self.photoimg_top = ImageTk.PhotoImage(img_top)
f_lbl = Label(self.root, image=self.photoimg_top)
f_lbl.place(x=0,y=55,width=1540,height=740)
email_label1 = Label(f_lbl, text="For any queries, drop a mail ", font=("times new roman", 50, "underline","bold"),fg="white", bg='black')
email_label1.place(x=350,y=100)
email_label2 = Label(f_lbl, text=" Contact us 📧 ", font=("times new roman", 30, "bold"),fg="blue", bg='black', cursor='hand2')
email_label2.place(x=650,y=200)
email_label2.bind('<Button-1>',
lambda x:webbrowser.open_new("mailto:[email protected]"))
if __name__ == "__main__":
root = Tk()
obj = Help(root)
root.mainloop()