Skip to content

Add files via upload #4

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

Merged
merged 2 commits into from
Oct 8, 2021
Merged
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
155 changes: 155 additions & 0 deletions Python_GUI/Job Application Portal/GUI_Portal.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
from tkinter import *
from tkinter.ttk import *
import sqlite3
import tkinter as tk
from tkinter import messagebox

window = Tk()
window.title("JOB PORTAL")
window.geometry("1100x900")


name=StringVar()
lname=StringVar()
email=StringVar()
combo=StringVar()
ad1=StringVar()
ad2=StringVar()
ad3=StringVar()
cmb=StringVar()
phone=IntVar()
ph=IntVar()
hobbies=StringVar()
cn=StringVar()
jt=StringVar()
time=IntVar()
refnm=StringVar()
mob=IntVar()

def data():
nm=name.get()
lnm=lname.get()
eml=email.get()
com=cmb.get()
add1=ad1.get()
add2=ad2.get()
add3=ad3.get()
comb=cmb.get()
phn=phone.get()
phn1=ph.get()
hob=hobbies.get()
company=cn.get()
job=jt.get()
tim=time.get()
nam=refnm.get()
mobile=mob.get()


db = sqlite3.connect('job.db')
cursor=db.cursor()
cursor.execute('CREATE TABLE IF NOT EXISTS JOB(name TEXT,lname TEXT,email TEXT,combo TEXT,ad1 TEXT,ad2 TEXT,ad3 TEXT,cmb TEXT,phone INT,ph INT,hobbies TEXT,cn TEXT,jt TEXT,time INT,refnm TEXT,mob INT)')
cursor.execute('INSERT INTO JOB(name,lname,email,combo,ad1,ad2,ad3,cmb,phone,ph,hobbies,cn,jt,time,refnm,mob) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)',
(nm,lnm,eml,com,add1,add2,add3,comb,phn,phn1,hob,company,job,tim,nam,mobile))

db.commit()
msg = messagebox.showinfo( "DB Demo","SUBMITTED SUCCESSFULLY")

def display():
db = sqlite3.connect('job.db')
with db:
cursor=db.cursor()
my_w = Tk()
my_w.geometry("400x250")

r_set=cursor.execute('''SELECT * from JOB ''');
i=0
for JOB in r_set:
for j in range(len(JOB)):
e = Entry(my_w, width=10, fg='blue')
e.grid(row=i, column=j)
e.insert(END, JOB[j])
i=i+1

ja = Label(window,text="JOB APPLICATION", foreground="black",font=("Arial Bold",35)).place(x=500,y=0)
pa = Label(window,text="PERSONAL INFORMATION",foreground="red",font=("Arial Bold",18)).place(x=200,y=70)

name = Label(window,text="NAME:-",font=("Arial",14)).place(x=200,y=120)
name = Entry(window,width=40)
name.place(x=440,y=125)
lname =Entry(window,width=40)
lname.place(x=700,y=125)

email= Label(window,text="EMAIL:-",font=("Arial",14)).place(x=200,y=160)
email= Entry(window,width=60)
email.place(x=440,y=160)

edu = Label(window,text="EDUCATION:-",font=("Arial",14)).place(x=200,y=200)

combo = Combobox(window,text="Please Choose",width=30)
combo['values']=("High School","Senior Secondary Class","Under Graduate","Post Graduate")
combo.place(x=440,y=200)

resume = Label(window,text="RESUME:-",font=("Arial",14)).place(x=200,y=240)
btn = Button(window,text="Choose File").place(x=440,y=240)
chfile = Label(window,text="No choosen File",font=("Arial",12)).place(x=520,y=240)

add = Label(window,text="ADDRESS:-",font=("Arial",14)).place(x=200,y=280)

ad1 = Entry(window,width=60)
ad1.place(x=440,y=280)
add1= Label(window,text="Address 1").place(x=590,y=303)

ad2 = Entry(window,width=60)
ad2.place(x=440,y=330)
add2= Label(window,text="Address 2").place(x=590,y=353)

ad3 = Entry(window,width=60)
ad3.place(x=440,y=380)
add3= Label(window,text="Address 3").place(x=590,y=403)

cotr = Label(window,text="COUNTRY:-",font=("Arial",14)).place(x=200,y=430)

cmb = Combobox(window,text="Choose Country",width=30)
cmb['values'] = ("India","Nepal","Sri Lanka","Afganistan","United Kingdom","United States of America","Please Text")
cmb.place(x=440,y=430)

phone = Label(window,text="PHONE NUMBER:-",font=("Arial",14)).place(x=200,y=460)
phone = Entry(window,width=4)
phone.place(x=440,y=460)
ph = Entry(window,width=24)
ph.place(x=490,y=460)

hob = Label(window,text="What are your Hobbies:-",font=("Arial",14)).place(x=200,y=500)
hobbies = Entry(window,width=120)
hobbies.place(x=200,y=530)

ce = Label(window,text="PREVIOUS/CURRENT EMPLOYMENT DETAILS",foreground="red",font=("Arial Bold",18)).place(x=200,y=560)

cn = Label(window,text="COMPANY NAME:-",font=("Arial",14)).place(x=200,y=600)
cn = Entry(window,width=30)
cn.place(x=440,y=605)

jt = Label(window,text="JOB TITLE:-",font=("Arial",14)).place(x=200,y=640)
jt = Entry(window,width=30)
jt.place(x=440,y=640)

time = Label(window,text="HOW LONG WERE YOU HERE?:-",font=("Arial",14)).place(x=200,y=680)
time = Entry(window)
time.place(x=500,y=680)

ref = Label(window,text="REFERENCE",font=("Arial Bold", 16)).place(x=720,y=605)
refnm = Label(window,text="NAME:-",font=("Arial",12)).place(x=720,y=640)
refnm = Entry(window,width=40)
refnm.place(x=800,y=640)

mob = Label(window,text="MOB NO.:-",font=("Arial",12)).place(x=720,y=680)
mob = Entry(window,width=40)
mob.place(x=800,y=680)


msg=Button(window,text='APPLY NOW',command=data,width=20).place(x=400,y=730)

msg=Button(window,text="DISPLAY RECORD(s)",command=display,width=20).place(x=600,y=730)


window.mainloop()
17 changes: 17 additions & 0 deletions Python_GUI/Job Application Portal/sql_connection.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import sqlite3
my_conn = sqlite3.connect('job.db')

import tkinter as tk
from tkinter import *
my_w = tk.Tk()
my_w.geometry("1300x250")

r_set=my_conn.execute('''SELECT * from JOB ''');
i=0 # row value inside the loop
for JOB in r_set:
for j in range(len(JOB)):
e = Entry(my_w, width=10, fg='blue')
e.grid(row=i, column=j)
e.insert(END, JOB[j])
i=i+1
my_w.mainloop()
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ This repository contains **Some mini projects** implemented in **Python**
* Youtube Video Downloader

![youtube](YoutubeDownloader/Screenshot.png)

* This project uses python to make a Graphical user interface for a Job Application Portal.
![image](https://user-images.githubusercontent.com/54464202/136579221-ba47061d-8c7a-4e54-a397-83f4dc2c27bc.png)



### [Pygame Tutorial](Pygame_tutorial)

Expand Down