-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathB.A..py
182 lines (116 loc) · 5.12 KB
/
B.A..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
import tkinter as tk
from tkinter import *
from PIL import ImageTk,Image
pathway = tk.Tk()
screen_width = pathway.winfo_screenwidth()
screen_height = pathway.winfo_screenheight()
pathway.geometry('1800x800+0+0')
pathway.geometry(f"{screen_width}x{screen_height}+0+0")
pathway.title ("Career Counselling")
bgimage = ImageTk.PhotoImage(file='pathbg.png')
bglabel = Label(pathway, image=bgimage)
bglabel.place(x=0,y=0)
logo = ImageTk.PhotoImage(file='logo.png')
logolabel = Label(pathway,image=logo,)
logolabel.place(x=1,y=5)
def BPEd():
pathway.destroy()
import BPEd
def MA():
pathway.destroy()
import MA
def MAINMASSCOMMUNICATION():
pathway.destroy()
import MAINMASSCOMMUNICATION
def BACHELORINJOURNALISM():
pathway.destroy()
import BACHELORINJOURNALISM
def LLB():
pathway.destroy()
import LLB
def BACHELORinLIB():
pathway.destroy()
import BACHELORinLIB
def MBA():
pathway.destroy()
import MBA
def MPSC():
pathway.destroy()
import MPSC
def DIPLOMAINDRAMATISATION():
pathway.destroy()
import DIPLOMAINDRAMATISATION
def MCA():
pathway.destroy()
import MCA
def MCM():
pathway.destroy()
import MCM
def BEd():
pathway.destroy()
import BEd
def ADVERTISINGDIPLOMA():
pathway.destroy()
import ADVERTISINGDIPLOMA
def EVENTMANAGEMENTDIPLOMA():
pathway.destroy()
import EVENTMANAGEMENTDIPLOMA
def BSF():
pathway.destroy()
import BSF
Label = tk.Label(pathway, text="B.A", font=('Arial', 25))
Label.pack(padx=20, pady=100)
frame0 = Frame(pathway, width=1500, height=70, bg="black",)
frame0.place(x=0,y=0)
def home():
pathway.destroy()
import mainmenu
newaccbutton = Button(frame0, text="Home", font=('open sans', 12,'bold'), fg= 'white', bg='black', activeforeground='white' ,activebackground='black' ,cursor='hand2', bd=0,width=12,command= home).place(x= 950, y=30 )
newaccbutton = Button(frame0, text="Services", font=('open sans', 12,'bold'), fg= 'white', bg='black', activeforeground='white' ,activebackground='black' ,cursor='hand2', bd=0,width=12,).place(x= 1050, y=30 )
newaccbutton = Button(frame0, text="About Us", font=('open sans', 12,'bold'), fg= 'white', bg='black', activeforeground='white' ,activebackground='black' ,cursor='hand2', bd=0,width=12,).place(x= 1150, y=30 )
newaccbutton = Button(frame0, text="LogOut", font=('open sans', 12,'bold'), fg= 'white', bg='black', activeforeground='white' ,activebackground='black' ,cursor='hand2', bd=0,width=12,).place(x= 1250, y=30 )
userimg = ImageTk.PhotoImage(file='user2.png')
userimg_pil = Image.open('user2.png')
userimg_small_pil = userimg_pil.resize((60, 60)) # Reduce image size to 100x100
userimg_small = ImageTk.PhotoImage(userimg_small_pil)
button = Button(frame0, image=userimg_small, bg='black')
button.place(x=1410, y=0)
buttonframe = tk.Frame(pathway)
buttonframe.columnconfigure(0, weight=1)
buttonframe.columnconfigure(1, weight=1)
buttonframe.columnconfigure(2, weight=1)
btn1 = tk.Button(buttonframe, text="B.P.Ed", font=('Arial', 18),command=BPEd)
btn1.grid(row=0, column=0, sticky=tk.W+tk.E)
btn1 = tk.Button(buttonframe, text="M.A", font=('Arial', 18),command=MA)
btn1.grid(row=0, column=1, sticky=tk.W+tk.E)
btn1 = tk.Button(buttonframe, text="M.A. IN MASS COMMUNICATION", font=('Arial', 18),command=MAINMASSCOMMUNICATION)
btn1.grid(row=0, column=2, sticky=tk.W+tk.E)
btn1 = tk.Button(buttonframe, text="BACHELOR IN JOURNALISM", font=('Arial', 18),command=BACHELORINJOURNALISM)
btn1.grid(row=1, column=0, sticky=tk.W+tk.E)
btn1 = tk.Button(buttonframe, text="L.L.B", font=('Arial', 18),command=LLB)
btn1.grid(row=1, column=1, sticky=tk.W+tk.E)
btn1 = tk.Button(buttonframe, text="BACHELAR OF LIBRARY SCIENCE", font=('Arial', 18),command=BACHELORinLIB)
btn1.grid(row=1, column=2, sticky=tk.W+tk.E)
btn1 = tk.Button(buttonframe, text="M.B.A.", font=('Arial', 18),command=MBA)
btn1.grid(row=2, column=0, sticky=tk.W+tk.E)
btn1 = tk.Button(buttonframe, text="M.P.S.C/U.P.S.C.", font=('Arial', 18),command=MPSC)
btn1.grid(row=2, column=1, sticky=tk.W+tk.E)
btn1 = tk.Button(buttonframe, text="DIPLOMA IN DRAMATISATION", font=('Arial', 18),command=DIPLOMAINDRAMATISATION)
btn1.grid(row=2, column=2, sticky=tk.W+tk.E)
btn1 = tk.Button(buttonframe, text="M.C.A.", font=('Arial', 18),command=MCA)
btn1.grid(row=3, column=0, sticky=tk.W+tk.E)
btn1 = tk.Button(buttonframe, text="M.C.M", font=('Arial', 18),command=MCM)
btn1.grid(row=3, column=1, sticky=tk.W+tk.E)
btn1 = tk.Button(buttonframe, text="B.Ed", font=('Arial', 18),command=BEd)
btn1.grid(row=3, column=2, sticky=tk.W+tk.E)
btn1 = tk.Button(buttonframe, text="ADVERTISING DIPLOMA", font=('Arial', 18),command=ADVERTISINGDIPLOMA)
btn1.grid(row=4, column=0, sticky=tk.W+tk.E)
btn1 = tk.Button(buttonframe, text="EVENT MANAGEMENT DIPLOMA", font=('Arial', 18),command=EVENTMANAGEMENTDIPLOMA)
btn1.grid(row=4, column=1, sticky=tk.W+tk.E)
btn1 = tk.Button(buttonframe, text="BSF/CRPF/CISF", font=('Arial', 18),command=BSF)
btn1.grid(row=4, column=2, sticky=tk.W+tk.E)
buttonframe.pack(fill='x', pady=50)
logo = ImageTk.PhotoImage(file='logo.png')
logolabel = Label(pathway,image=logo,)
logolabel.place(x=1,y=5)
pathway.mainloop()