-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.py
54 lines (40 loc) · 1.19 KB
/
start.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
from tkinter import *
from tkinter import messagebox, ttk
from login import *
from to_student import *
root = Tk()
root.title('Welcome')
root.resizable(False, False)
width = 1000
height = 700
font = 'Akshar'
def center_screen(width, height):
screenwidth = root.winfo_screenwidth()
screenheight = root.winfo_screenheight()
x = int((screenwidth-width)/2)
y = int((screenheight-height)/2)
root.geometry(f"{width}x{height}+{x}+{y}")
center_screen(width, height)
padx = 10
pady = 10
# photo of the start page
def new_window():
root.destroy()
window = Tk()
obj = Login(window)
def new_window2():
root.destroy()
window2 = Tk()
obj2 = to_student(window2)
# 52796f
btn = Button(root, text='Admins and Teachers', padx=padx, pady=pady, bg='#52796f', width=20, height=2, relief=RAISED,
font=('Akshar Bold', 14), fg='#f6fff8', command=new_window)
btn.place(x=200, y=600)
btn1 = Button(root, text='Students', bg='#52796f', fg='#f6fff8', padx=padx, pady=pady, width=10, height=2, relief=RAISED,
font=('Akshar Bold', 14), command=new_window2)
btn1.place(x=600, y=600)
root.mainloop()
# ALL DONE
# font for all project is Akshar
# New edit
# ahmed yasser