-
Notifications
You must be signed in to change notification settings - Fork 0
/
student.py
71 lines (54 loc) · 2.67 KB
/
student.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
68
69
from tkinter import *
from tkinter import messagebox,ttk
from to_student import *
# import db
class STUDENT:
def __init__ (self , root):
self.root=root
self.root.title('student manemant system')
self.root.geometry('1000x615+0+0')
self.root.resizable(False,False)
self.root.configure(bg='#6b9080')
#===============student_info Frame=============#
student_info=Frame(self.root,bg='#6b9080')
lb1_ID=Label(student_info,text='ID: ',font=('Ashkar',16),bg='#6b9080',fg='#f6fff8')
lb1_ID.grid(row= 0, column= 0)
text_ID=Entry(student_info,width=20,font=('Ashkar',16))
text_ID.grid(row= 0, column= 1)
lb1_name=Label(student_info,text='Name: ',font=('Ashkar',16),bg='#6b9080',fg='#f6fff8')
lb1_name.grid(row= 1, column=0)
text_name=Entry(student_info,width=20,font=('Ashkar',16))
text_name.grid(row= 1,column=1)
lb1_gba=Label(student_info,text='GPA: ',font=('Ashkar',16),bg='#6b9080',fg='#f6fff8')
lb1_gba.grid(row= 2, column= 0)
text_gba=Entry(student_info,width=20,font=('Ashkar',16))
text_gba.grid(row= 2, column= 1)
lb1_email=Label(student_info,text='Email: ',font=('Ashkar',16),bg='#6b9080',fg='#f6fff8')
lb1_email.grid(row= 3, column= 0)
text_email=Entry(student_info,width=20,font=('Ashkar',16))
text_email.grid(row=3, column=1)
lb1_section=Label(student_info,text='Section: ',font=('Ashkar',16),bg='#6b9080',fg='#f6fff8')
lb1_section.grid(row= 4, column= 0)
text_section=Entry(student_info,width=20,font=('Ashkar',16))
text_section.grid(row= 4,column= 1)
lb1_level=Label(student_info,text='Level: ',font=('Ashkar',16),bg='#6b9080',fg='#f6fff8')
lb1_level.grid(row=5, column=0)
text_level=Entry(student_info,width=20,font=('Ashkar',16))
text_level.grid(row= 5, column=1)
lb1_address=Label(student_info,text='Address: ',font=('Ashkar',16),bg='#6b9080',fg='#f6fff8')
lb1_address.grid(row= 6, column= 0)
text_address=Entry(student_info,width=20,font=('Ashkar',16))
text_address.grid(row=6, column= 1)
""" def go_back():
student_info.destroy()
frame()
"""
"""btn=Button(student_info,text='Back',bg='#6b9080',fg= '#f6fff8',width = 10,height =2,relief=RAISED,
font=('Ashkar Bold', 14), command=go_back)
btn.grid(row = 7, column= 0,columnspan=2)"""
student_info.place(anchor='center', relx = 0.5, rely =0.5)
'''
root=Tk()
obj=STUDENT(root)
root.mainloop()
'''