Python Project
Python Project
TPGIT
Submitted by: K VENGIDESAN
V GOGUL
R VISHU
Table of contents
1. Introduction
2. Functional requirement
4. Source code
5. Screenshots of program.
Introduction
Purpose
This document describe the software requirement and specification for Registering
and applying for jobs. The application is intended to provide complete solution
for customers through it.
Overview
Definition
Recruitment system is the system by which any user can get their desired
jobs in their desired field.
Users
This document is intended for all users and developers (designer, testers,
maintainers). And also for admin of the application who look for details of
the application.
Scope
This system allow the customer to get jobs as per their choice.
Functional requirement
This section provides requirement overview of the system. Various
functional modules that can be implemented by the system will be –
1. Description
Registration:
If customer wants to use the application, then user must register in it.
2. Log in
Customer logins to system by entering valid user id and password for using it..
Output: Logged in
3. Find Jobs
Processing: The system will help to register in their desired field as per input given by
user.
Non functional requirement
1. Security
Sensitive data should be encrypted before sending over insecure path like internet.
2. Reliability
Backup of data which is continuously maintain and updated regularly for changes.
3. Availability
The system should be available at all times, meaning the user can access it using an
application.
4. Portability
An end-user can use this on any OS, either it is Windows or Linux or IOS.
The system should run on PC, Laptops, mobile, phones and tablets etc.
Source code
Main page:
import os
try:
except ImportError:
try:
import ttk
py3 = False
except ImportError:
py3 = True
def click_login():
call(["python", "login.py"])
def click_regis():
call(["python", "regis.py"])
def click_find():
call(["python","projectpython.py"])
class Online_Employee_Recruitment_System:
def __init__(self):
root = Tk()
_bgcolor = '#d9d9d9'
_fgcolor = '#000000'
_compcolor = '#ffffff'
_ana1color = '#ffffff'
_ana2color = '#ffffff'
root.geometry("963x749+540+110")
root.configure(background="#d9d9d9")
root.configure(highlightbackground="#d9d9d9")
root.configure(highlightcolor="black")
self.Frame1 = Frame(root)
self.Frame1.configure(relief=GROOVE)
self.Frame1.configure(background="#d9d9d9")
self.Frame1.configure(highlightbackground="#d9d9d9")
self.Frame1.configure(highlightcolor="black")
self.Frame1.configure(width=925)
self.Message6 = Message(self.Frame1)
self.Message6.place(relx=0.09, rely=0.01, relheight=0.15, relwidth=0.86)
self.Message6.configure(background="#d9d9d9")
self.Message6.configure(font=font16)
self.Message6.configure(foreground="#000000")
self.Message6.configure(highlightbackground="#d9d9d9")
self.Message6.configure(highlightcolor="black")
self.Message6.configure(text='''WELCOME''')
self.Message6.configure(width=791)
self.Button2 = Button(self.Frame1)
self.Button2.configure(activebackground="#d9d9d9")
self.Button2.configure(activeforeground="#000000")
self.Button2.configure(background="#d9d9d9")
self.Button2.configure(disabledforeground="#bfbfbf")
self.Button2.configure(font=font14)
self.Button2.configure(foreground="#000000")
self.Button2.configure(highlightbackground="#d9d9d9")
self.Button2.configure(highlightcolor="black")
self.Button2.configure(pady="0")
self.Button2.configure(text='''1.Login''')
self.Button2.configure(width=566)
self.Button2.configure(command=click_login)
self.Button3 = Button(self.Frame1)
self.Button3.configure(activebackground="#ff6600")
self.Button3.configure(background="#d9d9d9")
self.Button3.configure(disabledforeground="#bfbfbf")
self.Button3.configure(font=font14)
self.Button3.configure(text='''2.Register Yourself''')
self.Button3.configure(command=click_regis)
self.Button4 = Button(self.Frame1)
self.Button4.configure(activebackground="#ff6600")
self.Button4.configure(background="#d9d9d9")
self.Button4.configure(disabledforeground="#bfbfbf")
self.Button4.configure(font=font14)
self.Button4.configure(command=click_find)
if __name__ == '__main__':
GUUEST=Online_Employee_Recruitment_System()
Log in:
from tkinter import *
import os
def register():
global register_screen
register_screen = Toplevel(main_screen)
register_screen.title("Register")
register_screen.geometry("500x500")
global username
global password
global username_entry
global password_entry
username = StringVar()
password = StringVar()
Label(register_screen, text="").pack()
username_lable.pack()
username_entry.pack()
password_lable.pack()
password_entry.pack()
Label(register_screen, text="").pack()
def register_user():
username_info = username.get()
password_info = password.get()
file = open(username_info, "w")
file.write(username_info + "\n")
file.write(password_info)
file.close()
username_entry.delete(0, END)
password_entry.delete(0, END)
def login():
global login_screen
login_screen = Toplevel(main_screen)
login_screen.title("Login")
login_screen.geometry("500x500")
Label(login_screen, text="").pack()
global username_verify
global password_verify
username_verify = StringVar()
password_verify = StringVar()
global username_login_entry
global password_login_entry
username_login_entry.pack()
Label(login_screen, text="").pack()
password_login_entry.pack()
Label(login_screen, text="").pack()
def login_verify():
username1 = username_verify.get()
password1 = password_verify.get()
username_login_entry.delete(0, END)
password_login_entry.delete(0, END)
list_of_files = os.listdir()
if username1 in list_of_files:
file1 = open(username1, "r")
verify = file1.read().splitlines()
if password1 in verify:
login_sucess()
else:
password_not_recognised()
else:
user_not_found()
def login_sucess():
global login_success_screen
login_success_screen = Toplevel(login_screen)
login_success_screen.title("Success")
login_success_screen.geometry("150x100")
def password_not_recognised():
global password_not_recog_screen
password_not_recog_screen = Toplevel(login_screen)
password_not_recog_screen.title("Success")
password_not_recog_screen.geometry("150x100")
Button(password_not_recog_screen, text="OK",
command=delete_password_not_recognised).pack()
def user_not_found():
global user_not_found_screen
user_not_found_screen = Toplevel(login_screen)
user_not_found_screen.title("Success")
user_not_found_screen.geometry("150x100")
# Deleting popups
def delete_login_success():
login_success_screen.destroy()
def delete_password_not_recognised():
password_not_recog_screen.destroy()
def delete_user_not_found_screen():
user_not_found_screen.destroy()
#------------------------------------------------------------
def main_account_screen():
global main_screen
main_screen = Tk()
main_screen.geometry("500x550")
main_screen.title("Account Login")
Label(text="").pack()
Label(text="").pack()
main_screen.mainloop()
main_account_screen()
Register Yourself:
from tkinter import *
import sqlite3
def sel():
selection =str(var.get())
label.config(text=selection)
root = Tk()
root.geometry('500x500')
root.title("Registration Form")
Fullname=StringVar()
Email=StringVar()
var = IntVar()
c=StringVar()
text=StringVar()
def database():
name1=Fullname.get()
email=Email.get()
gender=var.get()
country=c.get()
describe=text.get()
conn = sqlite3.connect('Form.db')
with conn:
cursor=conn.cursor()
conn.commit()
call(["python", "regis.py"])
label_0.place(x=90,y=53)
label_1.place(x=80,y=130)
entry_1 = Entry(root,textvar=Fullname)
entry_1.place(x=240,y=130)
label_2.place(x=68,y=180)
entry_2 = Entry(root,textvar=Email)
entry_2.place(x=240,y=180)
label_3 = Label(root, text="Gender",width=20,font=("bold", 10))
label_3.place(x=70,y=230)
label_4.place(x=70,y=280)
droplist=OptionMenu(root,c, *list1)
droplist.config(width=15)
droplist.place(x=240,y=280)
label_5.place(x=70,y=330)
entry_5 = Entry(root,textvar=text)
entry_5.place(x=240,y=330)
Button(root, text='Submit',width=20,bg='grey',fg='white',command=database).place(x=180,y=400)
root.mainloop()
a=Tk()
var=IntVar()
checkvar1=IntVar()
checkvar2=IntVar()
checkvar3=IntVar()
def sel():
label.config(text=selection)
def yoo():
e=Tk()
e.geometry("300x200")
l6.grid(row=0,column=7)
def done():
d=Tk()
d.geometry("800x500")
l4.grid(row=0,column=0,padx=20,pady=30)
r2=Radiobutton(d, text='python',variable=var,value=1,command=sel)
r2.grid(row=0, column=1)
r3=Radiobutton(d, text='HTML',variable=var,value=2,command=sel)
r3.grid(row=0, column=2)
r4=Radiobutton(d, text='C',variable=var,value=3,command=sel)
r4.grid(row=0, column=3)
r5=Radiobutton(d, text='C++',variable=var,value=4,command=sel)
r5.grid(row=0, column=4)
b5=Button(d,text="Apply",command=yoo)
b5.grid(row=1,column=2,padx=20,pady=30)
b7=Button(d,text="Exit",command=processcancel)
b7.grid(row=1,column=4,padx=20,pady=30)
label=Label(d)
label.grid(row=7,column=4)
def apply3():
g=Tk()
g.geometry("800x800")
l4.grid(row=0,column=0,padx=20,pady=30)
l5.grid(row=1,column=0,padx=20,pady=30)
b3=Button(g,text="Next",command=processok)
b3.grid(row=2,column=0,padx=20,pady=30)
l6.grid(row=3,column=0,padx=20,pady=30)
b3=Button(g,text="Next",command=processok)
b3.grid(row=4,column=0,padx=20,pady=30)
l7.grid(row=5,column=0,padx=20,pady=30)
b4=Button(g,text="Next",command=processok)
b4.grid(row=6,column=0,padx=20,pady=30)
b5=Button(g,text="Exit",command=processcancel)
b5.grid(row=7,column=4,padx=20,pady=30)
def apply2():
f=Tk()
f.geometry("800x800")
l4.grid(row=0,column=0,padx=20,pady=30)
l5.grid(row=1,column=0,padx=20,pady=30)
b3=Button(f,text="Next",command=processok)
b3.grid(row=2,column=0,padx=20,pady=30)
l6.grid(row=3,column=0,padx=20,pady=30)
b3=Button(f,text="Next",command=processok)
b3.grid(row=4,column=0,padx=20,pady=30)
l7.grid(row=5,column=0,padx=20,pady=30)
b4=Button(f,text="Next",command=processok)
b4.grid(row=6,column=0,padx=20,pady=30)
b5=Button(f,text="Exit",command=processcancel)
b5.grid(row=7,column=4,padx=20,pady=30)
def apply():
c=Tk()
c.geometry("800x800")
l4.grid(row=0,column=0,padx=20,pady=30)
l5=Label(c, text="Assistant professor (salary:100000,Collage:LPU,Qualification:Phd holder in
computer science)")
l5.grid(row=1,column=0,padx=20,pady=30)
b3=Button(c,text="Next",command=processok)
b3.grid(row=2,column=0,padx=20,pady=30)
l6.grid(row=3,column=0,padx=20,pady=30)
b3=Button(c,text="Next",command=processok)
b3.grid(row=4,column=0,padx=20,pady=30)
l7.grid(row=5,column=0,padx=20,pady=30)
b4=Button(c,text="Next",command=processok)
b4.grid(row=6,column=0,padx=20,pady=30)
b5=Button(c,text="Exit",command=processcancel)
b5.grid(row=7,column=4,padx=20,pady=30)
def processok():
top=Tk()
top.geometry("1000x900")
l8.grid(row=0,column=0,padx=20,pady=30)
l9.grid(row=1,column=0,padx=20,pady=30)
b1=Button(top,text="Next",command=done)
b1.grid(row=2,column=3,padx=20,pady=30)
l10=Label(top, text="Mechanical")
l10.grid(row=3,column=0,padx=20,pady=30)
b1=Button(top,text="Apply",command=yoo)
b1.grid(row=4,column=3,padx=20,pady=30)
l11=Label(top, text='Civil')
l11.grid(row=5,column=0,padx=20,pady=30)
b1=Button(top,text="Apply",command=yoo)
b1.grid(row=6,column=3,padx=20,pady=30)
b2=Button(top,text="Exit",command=processcancel)
b2.grid(row=7,column=5,padx=20,pady=30)
label=Label(top)
label.grid(row=7,column=4)
def processcancel():
b=Tk()
b.geometry("300x200")
l3.grid(row=0,column=3)
a.title("Find job")
a.geometry("900x800")
l2.grid(row=0,column=0,padx=20,pady=30)
l3=Label(a, text='Jalandhar')
l3.grid(row=1,column=0,padx=20,pady=30)
b1=Button(a,text="Next",command=apply)
b1.grid(row=2,column=3,padx=20,pady=30)
l4=Label(a, text='Delhi')
l4.grid(row=3,column=0,padx=20,pady=30)
b1=Button(a,text="Next",command=apply2)
b1.grid(row=4,column=3,padx=20,pady=30)
l5=Label(a, text='Chennai')
l5.grid(row=5,column=0,padx=20,pady=30)
b1=Button(a,text="Next",command=apply3)
b1.grid(row=6,column=3,padx=20,pady=30)
b2=Button(a,text="Exit",command=processcancel)
b2.grid(row=7,column=4,padx=20,pady=30)
label=Label(a)
label.grid(row=7,column=4)
a.mainloop()
Screenshots