-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
executable file
·51 lines (35 loc) · 1.32 KB
/
app.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
# -*- coding: utf-8 -*-
import sys
if "Tkinter" not in sys.modules:
import tkinter as tk
import databasefile as dbb
# import pandas as pd
from PIL import Image,ImageTk
import dataView as dv
import screens.teacherScreen as ttc
import screens.adminScreen as adm
import screens.startScreen as stc
import screens.studentScreen as std
import screens.teacherLogin as tlog
import screens.addStudent as addstd
import screens.addTeacher as addtc
import screens.adminLogin as admlog
import screens.studentLogin as stdl
class app(tk.Tk):
def __init__(self):
tk.Tk.__init__(self)
container = tk.Frame(self)
self.geometry("500x500")
container.pack(side = "top", fill = "both", expand= True)
self.frames = {}
for F in (stc.StartPage, ttc.teacherPage, adm.adminPage, std.studentPage, dv.dataView, tlog.teacherLogin, addstd.addStudent, addtc.addTeacher,admlog.adminLogin, stdl.studentLogin):
frame = F(container,self)
self.frames[F] = frame
frame.grid(row = 0, column = 0, sticky= "nsew")
self.show_frame(stc.StartPage)
def show_frame(self,cont):
frame = self.frames[cont]
self.geometry("1366x768")
frame.tkraise()
app = app()
app.mainloop()