Skip to content

Commit 22425eb

Browse files
authored
Merge pull request #4 from SahilSatyam/main
Add files via upload
2 parents b03c465 + d08774b commit 22425eb

File tree

3 files changed

+177
-0
lines changed

3 files changed

+177
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
from tkinter import *
2+
from tkinter.ttk import *
3+
import sqlite3
4+
import tkinter as tk
5+
from tkinter import messagebox
6+
7+
window = Tk()
8+
window.title("JOB PORTAL")
9+
window.geometry("1100x900")
10+
11+
12+
name=StringVar()
13+
lname=StringVar()
14+
email=StringVar()
15+
combo=StringVar()
16+
ad1=StringVar()
17+
ad2=StringVar()
18+
ad3=StringVar()
19+
cmb=StringVar()
20+
phone=IntVar()
21+
ph=IntVar()
22+
hobbies=StringVar()
23+
cn=StringVar()
24+
jt=StringVar()
25+
time=IntVar()
26+
refnm=StringVar()
27+
mob=IntVar()
28+
29+
def data():
30+
nm=name.get()
31+
lnm=lname.get()
32+
eml=email.get()
33+
com=cmb.get()
34+
add1=ad1.get()
35+
add2=ad2.get()
36+
add3=ad3.get()
37+
comb=cmb.get()
38+
phn=phone.get()
39+
phn1=ph.get()
40+
hob=hobbies.get()
41+
company=cn.get()
42+
job=jt.get()
43+
tim=time.get()
44+
nam=refnm.get()
45+
mobile=mob.get()
46+
47+
48+
db = sqlite3.connect('job.db')
49+
cursor=db.cursor()
50+
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)')
51+
cursor.execute('INSERT INTO JOB(name,lname,email,combo,ad1,ad2,ad3,cmb,phone,ph,hobbies,cn,jt,time,refnm,mob) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)',
52+
(nm,lnm,eml,com,add1,add2,add3,comb,phn,phn1,hob,company,job,tim,nam,mobile))
53+
54+
db.commit()
55+
msg = messagebox.showinfo( "DB Demo","SUBMITTED SUCCESSFULLY")
56+
57+
def display():
58+
db = sqlite3.connect('job.db')
59+
with db:
60+
cursor=db.cursor()
61+
my_w = Tk()
62+
my_w.geometry("400x250")
63+
64+
r_set=cursor.execute('''SELECT * from JOB ''');
65+
i=0
66+
for JOB in r_set:
67+
for j in range(len(JOB)):
68+
e = Entry(my_w, width=10, fg='blue')
69+
e.grid(row=i, column=j)
70+
e.insert(END, JOB[j])
71+
i=i+1
72+
73+
ja = Label(window,text="JOB APPLICATION", foreground="black",font=("Arial Bold",35)).place(x=500,y=0)
74+
pa = Label(window,text="PERSONAL INFORMATION",foreground="red",font=("Arial Bold",18)).place(x=200,y=70)
75+
76+
name = Label(window,text="NAME:-",font=("Arial",14)).place(x=200,y=120)
77+
name = Entry(window,width=40)
78+
name.place(x=440,y=125)
79+
lname =Entry(window,width=40)
80+
lname.place(x=700,y=125)
81+
82+
email= Label(window,text="EMAIL:-",font=("Arial",14)).place(x=200,y=160)
83+
email= Entry(window,width=60)
84+
email.place(x=440,y=160)
85+
86+
edu = Label(window,text="EDUCATION:-",font=("Arial",14)).place(x=200,y=200)
87+
88+
combo = Combobox(window,text="Please Choose",width=30)
89+
combo['values']=("High School","Senior Secondary Class","Under Graduate","Post Graduate")
90+
combo.place(x=440,y=200)
91+
92+
resume = Label(window,text="RESUME:-",font=("Arial",14)).place(x=200,y=240)
93+
btn = Button(window,text="Choose File").place(x=440,y=240)
94+
chfile = Label(window,text="No choosen File",font=("Arial",12)).place(x=520,y=240)
95+
96+
add = Label(window,text="ADDRESS:-",font=("Arial",14)).place(x=200,y=280)
97+
98+
ad1 = Entry(window,width=60)
99+
ad1.place(x=440,y=280)
100+
add1= Label(window,text="Address 1").place(x=590,y=303)
101+
102+
ad2 = Entry(window,width=60)
103+
ad2.place(x=440,y=330)
104+
add2= Label(window,text="Address 2").place(x=590,y=353)
105+
106+
ad3 = Entry(window,width=60)
107+
ad3.place(x=440,y=380)
108+
add3= Label(window,text="Address 3").place(x=590,y=403)
109+
110+
cotr = Label(window,text="COUNTRY:-",font=("Arial",14)).place(x=200,y=430)
111+
112+
cmb = Combobox(window,text="Choose Country",width=30)
113+
cmb['values'] = ("India","Nepal","Sri Lanka","Afganistan","United Kingdom","United States of America","Please Text")
114+
cmb.place(x=440,y=430)
115+
116+
phone = Label(window,text="PHONE NUMBER:-",font=("Arial",14)).place(x=200,y=460)
117+
phone = Entry(window,width=4)
118+
phone.place(x=440,y=460)
119+
ph = Entry(window,width=24)
120+
ph.place(x=490,y=460)
121+
122+
hob = Label(window,text="What are your Hobbies:-",font=("Arial",14)).place(x=200,y=500)
123+
hobbies = Entry(window,width=120)
124+
hobbies.place(x=200,y=530)
125+
126+
ce = Label(window,text="PREVIOUS/CURRENT EMPLOYMENT DETAILS",foreground="red",font=("Arial Bold",18)).place(x=200,y=560)
127+
128+
cn = Label(window,text="COMPANY NAME:-",font=("Arial",14)).place(x=200,y=600)
129+
cn = Entry(window,width=30)
130+
cn.place(x=440,y=605)
131+
132+
jt = Label(window,text="JOB TITLE:-",font=("Arial",14)).place(x=200,y=640)
133+
jt = Entry(window,width=30)
134+
jt.place(x=440,y=640)
135+
136+
time = Label(window,text="HOW LONG WERE YOU HERE?:-",font=("Arial",14)).place(x=200,y=680)
137+
time = Entry(window)
138+
time.place(x=500,y=680)
139+
140+
ref = Label(window,text="REFERENCE",font=("Arial Bold", 16)).place(x=720,y=605)
141+
refnm = Label(window,text="NAME:-",font=("Arial",12)).place(x=720,y=640)
142+
refnm = Entry(window,width=40)
143+
refnm.place(x=800,y=640)
144+
145+
mob = Label(window,text="MOB NO.:-",font=("Arial",12)).place(x=720,y=680)
146+
mob = Entry(window,width=40)
147+
mob.place(x=800,y=680)
148+
149+
150+
msg=Button(window,text='APPLY NOW',command=data,width=20).place(x=400,y=730)
151+
152+
msg=Button(window,text="DISPLAY RECORD(s)",command=display,width=20).place(x=600,y=730)
153+
154+
155+
window.mainloop()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import sqlite3
2+
my_conn = sqlite3.connect('job.db')
3+
4+
import tkinter as tk
5+
from tkinter import *
6+
my_w = tk.Tk()
7+
my_w.geometry("1300x250")
8+
9+
r_set=my_conn.execute('''SELECT * from JOB ''');
10+
i=0 # row value inside the loop
11+
for JOB in r_set:
12+
for j in range(len(JOB)):
13+
e = Entry(my_w, width=10, fg='blue')
14+
e.grid(row=i, column=j)
15+
e.insert(END, JOB[j])
16+
i=i+1
17+
my_w.mainloop()

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ This repository contains **Some mini projects** implemented in **Python**
1818
* Youtube Video Downloader
1919

2020
![youtube](YoutubeDownloader/Screenshot.png)
21+
22+
* This project uses python to make a Graphical user interface for a Job Application Portal.
23+
![image](https://user-images.githubusercontent.com/54464202/136579221-ba47061d-8c7a-4e54-a397-83f4dc2c27bc.png)
24+
25+
2126

2227
### [Pygame Tutorial](Pygame_tutorial)
2328

0 commit comments

Comments
 (0)