forked from Aaris-Kazi/Data-Visualization-Using-Matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIndex_GUI.py
More file actions
64 lines (50 loc) · 1.89 KB
/
Index_GUI.py
File metadata and controls
64 lines (50 loc) · 1.89 KB
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
from tkinter import *
import test_database as td
import Data_Graph as dg
import data_visual as dv
def main():
#list Defaulter command
def output_database():
op.delete(0,END)
op.insert(END, 'Defaulter')
for i in td.td1():
op.insert(END, i)
def clear_text():
op.delete(0,END)
def all_data():
op.delete(0,END)
op.insert(END,'Name Attendance Subject Subject_Code')
for i in td.td2():
op.insert(END, i)
dg.data()
def inp_text():
x = text_entry.get()
dv.data_vis1(x)
for i in td.td3(x):
op.insert(END, i)
window = Tk()
text_input = StringVar()
text_entry = Entry(window, textvariable = 'text_input', border= 1,font = (20))
window.title('Attendance Management System')#Ploting the titlte
label = Label(window,text= 'Welcome To Attendance Management System',font = ('bold',16))#ploting the label
btn = Button(window, text = 'To show all defaulter',command = output_database )
btn2 = Button(window, text = 'To show Specific Graph Data',command = inp_text)
btn3 = Button(window, text = 'To Show All Data',command = all_data)
op = Listbox(window, height = 10, width = 100, border = 0)
scroll = Scrollbar(window)
#scroll option or scroll config
op.configure(yscrollcommand = scroll.set)
scroll.configure(command = op.yview)
clr_btn = Button(window, text = 'CLear', command = clear_text )
label.pack()
btn.place(x = 30, y = 50 )
btn2.place(x = 260, y = 150)
btn3.place(x = 30, y = 100)
text_entry.place(x = 30, y = 150, height = 30, width = 200)
op.place(x = 30, y = 190)
scroll.place(x = 630,y = 190, height = 160)
clr_btn.place(x = 630, y = 360)
window.geometry('720x480')
window.mainloop()
if __name__ == "__main__":
main()