-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathANALYSE_RESULTS.py
215 lines (185 loc) · 8.37 KB
/
ANALYSE_RESULTS.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Sep 26, 2018 01:16:48 PM
import sys
try:
from Tkinter import *
except ImportError:
from tkinter import *
try:
import ttk
py3 = False
except ImportError:
import tkinter.ttk as ttk
py3 = True
import ANALYSE_RESULTS_support
def vp_start_gui():
'''Starting point when module is the main routine.'''
global val, w, root
root = Tk()
top = ANALYSE_RESULTS (root)
ANALYSE_RESULTS_support.init(root, top)
root.mainloop()
w = None
def create_ANALYSE_RESULTS(root, *args, **kwargs):
'''Starting point when module is imported by another program.'''
global w, w_win, rt
rt = root
w = Toplevel (root)
top = ANALYSE_RESULTS (w)
ANALYSE_RESULTS_support.init(w, top, *args, **kwargs)
return (w, top)
def destroy_ANALYSE_RESULTS():
global w
w.destroy()
w = None
class ANALYSE_RESULTS:
def line(self):
import line_graph
line_graph.linegraph()
def dataa(self):
import dataset
dataset.datas()
def pie(self):
import grade_graph
grade_graph.piechart()
def histo(self):
import grade_graph1
grade_graph1.histogram()
def back(self):
ANALYSE_RESULTS_support.destroy_window()
import ODD_SEM2018
ODD_SEM2018.vp_start_gui()
def __init__(self, top=None):
'''This class configures and populates the toplevel window.
top is the toplevel containing window.'''
_bgcolor = '#d9d9d9' # X11 color: 'gray85'
_fgcolor = '#000000' # X11 color: 'black'
_compcolor = '#d9d9d9' # X11 color: 'gray85'
_ana1color = '#d9d9d9' # X11 color: 'gray85'
_ana2color = '#d9d9d9' # X11 color: 'gray85'
font14 = "-family {Segoe UI} -size 9 -weight normal -slant " \
"italic -underline 0 -overstrike 0"
font9 = "-family {Segoe UI} -size 9 -weight bold -slant roman " \
"-underline 0 -overstrike 0"
top.geometry("600x420+449+144")
top.title("ANALYSE RESULTS")
top.configure(borderwidth="20")
top.configure(relief="groove")
top.configure(background="#d9d9d9")
top.configure(highlightbackground="#d9d9d9")
top.configure(highlightcolor="black")
top.configure(takefocus="023")
top.configure(width="8")
self.menubar = Menu(top,font="TkMenuFont",bg=_bgcolor,fg=_fgcolor)
top.configure(menu = self.menubar)
self.Labelframe1 = LabelFrame(top)
self.Labelframe1.place(relx=0.1, rely=0.11, relheight=0.74
, relwidth=0.78)
self.Labelframe1.configure(relief=GROOVE)
self.Labelframe1.configure(foreground="black")
self.Labelframe1.configure(text='''RESULT ANALYSIS''')
self.Labelframe1.configure(background="#d9d9d9")
self.Labelframe1.configure(width=470)
self.Button1 = Button(self.Labelframe1)
self.Button1.place(relx=0.64, rely=0.15, height=34, width=67, y=-12)
self.Button1.configure(activebackground="#d9d9d9")
self.Button1.configure(activeforeground="#000000")
self.Button1.configure(background="#d9d9d9")
self.Button1.configure(disabledforeground="#a3a3a3")
self.Button1.configure(font=font9)
self.Button1.configure(foreground="#000000")
self.Button1.configure(highlightbackground="#d9d9d9")
self.Button1.configure(highlightcolor="black")
self.Button1.configure(pady="0")
self.Button1.configure(text='''SHOW''')
self.Button1.configure(width=67)
self.Button1.configure(command = self.dataa)
self.Button2 = Button(self.Labelframe1)
self.Button2.place(relx=0.64, rely=0.34, height=34, width=67, y=-12)
self.Button2.configure(activebackground="#d9d9d9")
self.Button2.configure(activeforeground="#000000")
self.Button2.configure(background="#d9d9d9")
self.Button2.configure(disabledforeground="#a3a3a3")
self.Button2.configure(font=font9)
self.Button2.configure(foreground="#000000")
self.Button2.configure(highlightbackground="#d9d9d9")
self.Button2.configure(highlightcolor="black")
self.Button2.configure(pady="0")
self.Button2.configure(text='''SHOW''')
self.Button2.configure(width=67)
self.Button2.configure(command = self.histo)
self.Button3 = Button(self.Labelframe1)
self.Button3.place(relx=0.64, rely=0.54, height=34, width=67, y=-12)
self.Button3.configure(activebackground="#d9d9d9")
self.Button3.configure(activeforeground="#000000")
self.Button3.configure(background="#d9d9d9")
self.Button3.configure(disabledforeground="#a3a3a3")
self.Button3.configure(font=font9)
self.Button3.configure(foreground="#000000")
self.Button3.configure(highlightbackground="#d9d9d9")
self.Button3.configure(highlightcolor="black")
self.Button3.configure(pady="0")
self.Button3.configure(text='''SHOW''')
self.Button3.configure(width=67)
self.Button3.configure(command = self.pie)
self.Button5 = Button(self.Labelframe1)
self.Button5.place(relx=0.64, rely=0.75, height=34, width=67, y=-12)
self.Button5.configure(activebackground="#d9d9d9")
self.Button5.configure(activeforeground="#000000")
self.Button5.configure(background="#d9d9d9")
self.Button5.configure(disabledforeground="#a3a3a3")
self.Button5.configure(font=font9)
self.Button5.configure(foreground="#000000")
self.Button5.configure(highlightbackground="#d9d9d9")
self.Button5.configure(highlightcolor="black")
self.Button5.configure(pady="0")
self.Button5.configure(text='''SHOW''')
self.Button5.configure(width=67)
self.Button5.configure(command = self.line)
self.Label1 = Label(self.Labelframe1)
self.Label1.place(relx=0.17, rely=0.15, height=41, width=104, y=-12)
self.Label1.configure(background="#d9d9d9")
self.Label1.configure(disabledforeground="#a3a3a3")
self.Label1.configure(font=font14)
self.Label1.configure(foreground="#000000")
self.Label1.configure(text='''MARKS''')
self.Label1.configure(width=104)
self.Label2 = Label(self.Labelframe1)
self.Label2.place(relx=0.21, rely=0.36, height=21, width=72, y=-12)
self.Label2.configure(background="#d9d9d9")
self.Label2.configure(disabledforeground="#a3a3a3")
self.Label2.configure(font=font14)
self.Label2.configure(foreground="#000000")
self.Label2.configure(text='''HISTOGRAM''')
self.Label3 = Label(self.Labelframe1)
self.Label3.place(relx=0.19, rely=0.54, height=31, width=94, y=-12)
self.Label3.configure(background="#d9d9d9")
self.Label3.configure(disabledforeground="#a3a3a3")
self.Label3.configure(font=font14)
self.Label3.configure(foreground="#000000")
self.Label3.configure(text='''PIE CHART''')
self.Label3.configure(width=94)
self.Label4 = Label(self.Labelframe1)
self.Label4.place(relx=0.19, rely=0.75, height=31, width=94, y=-12)
self.Label4.configure(background="#d9d9d9")
self.Label4.configure(disabledforeground="#a3a3a3")
self.Label4.configure(font=font14)
self.Label4.configure(foreground="#000000")
self.Label4.configure(text='''LINE GRAPH''')
self.Label4.configure(width=94)
self.Button4 = Button(top)
self.Button4.place(relx=0.05, rely=0.89, height=24, width=50)
self.Button4.configure(activebackground="#d9d9d9")
self.Button4.configure(activeforeground="#000000")
self.Button4.configure(background="#d9d9d9")
self.Button4.configure(disabledforeground="#a3a3a3")
self.Button4.configure(foreground="#000000")
self.Button4.configure(highlightbackground="#d9d9d9")
self.Button4.configure(highlightcolor="black")
self.Button4.configure(pady="0")
self.Button4.configure(text='''BACK''')
self.Button4.configure(width=47)
self.Button4.configure(command = self.back)
if __name__ == '__main__':
vp_start_gui()