-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin_menu.py
61 lines (49 loc) · 2.34 KB
/
admin_menu.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
import tkinter as tk
from tkinter import *
from AdminView import AdminView
from path_relative import *
from notice_board import notice_make
from login import *
from maintenance_module import *
from Portal import complaint_window_admin
import PGP_main
def home_page():
ad_menu.destroy()
PGP_main.home()
def adminmenu(username,password):
global ad_menu
def notice():
notice_make()
def maintenance():
admin_main_window(username,password)
def complaint():
complaint_window_admin()
def ViewAdmin():
ad_menu.destroy()
AdminView(username,password)
ad_menu = tk.Tk()
ad_menu.geometry("1200x613")
ad_menu.title('Admin Menu')
ad_menu.resizable(False,False)
image_background = PhotoImage(file=relative_to_assets("admin_menu.png"))
label = tk.Label(ad_menu, image=image_background)
label.place(x=0, y=0)
button_image_1 = PhotoImage(file=relative_to_assets("adm_notice.png"))
button_1 = Button(ad_menu, image=button_image_1, borderwidth=0, background='lightblue', command= notice,
highlightthickness=0, relief="flat")
button_1.place(x=40.0, y=418.0, width=250, height=75)
button_image_2 = PhotoImage(file=relative_to_assets("adm_complaint.png"))
button_2 = Button(ad_menu, image=button_image_2, borderwidth=0, background='lightblue',command=complaint,
highlightthickness=0, relief="flat")
button_2.place(x=330.0, y=418.0, width=250, height=75)
button_image_3 = PhotoImage(file=relative_to_assets("adm_view.png"))
button_3 = Button(ad_menu, image=button_image_3, borderwidth=0, highlightthickness=0, relief="flat",command=ViewAdmin)
button_3.place(x=620.0, y=418.0, width=250, height=75)
button_image_4 = PhotoImage(file=relative_to_assets("adm_maint.png"))
button_4 = Button(ad_menu, image=button_image_4, borderwidth=0, command=maintenance, highlightthickness=0, relief="flat")
button_4.place(x=910.0, y=418.0, width=250, height=75)
button_home_img = PhotoImage(file=relative_to_assets("logout_button.png"))
button_home = Button(ad_menu, image=button_home_img, borderwidth=0, highlightthickness=0,
command=home_page, relief="flat")
button_home.place(x=900, y=10)
ad_menu.mainloop()