-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmax_student_scores_gui.py
More file actions
44 lines (34 loc) · 1.29 KB
/
max_student_scores_gui.py
File metadata and controls
44 lines (34 loc) · 1.29 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
import tkinter as tk
class Navbar(tk.Frame): ...
class Toolbar(tk.Frame ): ...
class Statusbar(tk.Frame): ...
class Main(tk.Frame): ...
class LoadRefDataWindow(tk.Frame):
"""
This window is responsible for loading the full dataset of scores
The user may load the data through a finder window or by drag and
drop. After data is loaded window transitions to LoadIDWindow
"""
def __init__(self):
super(LoadRefDataWindow,self).__init__()
class LoadIDWindow(tk.Frame):
"""
This window is responsible for loading the student IDs we want data from
The user may load the data through a finder window or by drag and
drop.
"""
class MainApplication(tk.Frame):
def __init__(self, parent, *args, **kwargs):
super(MainApplication,self).__init__()
self.statusbar = Statusbar(self, ...)
self.toolbar = Toolbar(self, ...)
self.navbar = Navbar(self, ...)
self.main = Main(self, ...)
self.statusbar.pack(side="bottom", fill="x")
self.toolbar.pack(side="top", fill="x")
self.navbar.pack(side="left", fill="y")
self.main.pack(side="right", fill="both", expand=True)
if __name__ == "__main__":
root = tk.Tk()
MainApplication(root).pack(side="top", fill="both", expand=True)
root.mainloop()