-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathresult.py
45 lines (31 loc) · 939 Bytes
/
result.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
45
from tkinter import *
from Detection import data
import pdf_generator
from PIL import ImageTk, Image
import tkinter.font as tkFont
def res():
win = Tk()
win.minsize(width=800, height=500)
canvas2 = Canvas(win,bg='gray82',width=750,height=100)
canvas2.place(x=25,y=25)
var ='Name :'
lbl1 = Label(canvas2,text = var)
lbl1.place(x=10,y=10)
lbl2 = Label(canvas2,text = data.name)
lbl2.place(x=50,y=10)
lbl1 = Label(canvas2,text = 'Roll No.:')
lbl1.place(x=10,y=40)
lbl2 = Label(canvas2,text = data.roll)
lbl2.place(x=80,y=40)
canvas2 = Canvas(win,bg='gray82',width=750,height=350,)
canvas2.place(x=25,y=125)
fontObj = tkFont.Font(size=48)
lbl = Label(canvas2,text="Test Submitted",font=fontObj,bg='gray60',fg="gray82",justify='center')
lbl.place(x=110,y=130)
pdf_generator.pdf_gen()
print(data.URL)
print(data.softwares)
print(data.res.keys())
win.after(1500,lambda:win.destroy())
win.mainloop()
# res()