-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenteeMarks.py
67 lines (45 loc) · 1.31 KB
/
MenteeMarks.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import csv
import samplecode
from tkinter import *
username=input("Enter username:")
password=input("Enter password:")
exam=input("Enter CAT-1, CAT-2 or SAT:")
if exam=="CAT-1":
f=open(r"CAT-1results.txt","r")
c=csv.reader(f)
no=next(c)
l=[]
for i in c:
l.append(i)
f.close()
marks_tree=samplecode.createBST(l)
elif exam=="CAT-2":
f=open(r"CAT-2results.txt","r")
c=csv.reader(f)
no=next(c)
l=[]
for i in c:
l.append(i)
f.close()
marks_tree=samplecode.createBST(l)
elif exam=="SAT":
f=open() #inside the parenthesis put the filename containing SAT Marks
c=csv.reader(f)
no=next(c)
l=[]
for i in c:
l.append(i)
f.close()
marks_tree=samplecode.createBST(l)
samplecode.retrievex(marks_tree,username,1)
marks_details=samplecode.one_mentee_details[3:]
marks_details=[("Maths",marks_details[0]),("BEEE",marks_details[1]),("Physics",marks_details[2]),("PDS",marks_details[3]),
("HSE",marks_details[4]),("EVS",marks_details[5])]
total_rows=len(marks_details)
root=Tk()
for i in range(total_rows):
for j in range(2):
e=Entry(root,width=20,fg='blue')
e.grid(row=i,column=j)
e.insert(0,marks_details[i][j])
root.mainloop()