forked from nithyashree05/instant-messaging-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.py
47 lines (31 loc) · 1.31 KB
/
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
from tkinter import*
import tkinter as tk
window=tk.Tk()
window.title("instant messaging app - Menu")
window.geometry('1000x500+300+200')
window.configure(bg='#000000')
window.resizable(False,False)
background=PhotoImage(file='./signup.png')
Image_label=Label(image=background,border=0,bg='#000000').place(x=50,y=90)
def client():
window.destroy()
import client
def translator():
window.destroy()
import language_translator
def spelling():
window.destroy()
import spellingcorrector
def exit1():
window.destroy()
heading=Label(window,text='MENU',fg='#EA047E',bg='black',font=('Microsoft Yahei UI Light',23,'bold'))
heading.place(x=650,y=70)
clientButton=Button(window,text='Client',font=('Open Sans',18,'bold'),bg='#EA047E',fg='#fff',command=client)
clientButton.place(x=500,y=150)
spellingButton=Button(window,text='Spelling Corrector',font=('Open Sans',18,'bold'),bg='#EA047E',fg='#fff',command=spelling)
spellingButton.place(x=500,y=230)
langButton=Button(window,text='Language Translator',font=('Open Sans',18,'bold'),bg='#EA047E',fg='#fff',command=translator)
langButton.place(x=500,y=310)
exitButton=Button(window,text='EXIT',font=('Open Sans',18,'bold'),bg='#EA047E',fg='#fff',command=exit1)
exitButton.place(x=500,y=390)
window.mainloop()