Skip to content

Commit 6fad99b

Browse files
committed
GUI implemented
1 parent 7fb586a commit 6fad99b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Dictionary-GUI/dictionary.py

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
from tkinter import *
2+
3+
root = Tk()
4+
root.title("Dictionary")
5+
root.geometry("500x400")
6+
7+
8+
def getMeaning():
9+
frame1 = Frame(root)
10+
Label(frame1, text="Meaning:- ", font=("Helvetica 10 bold")).pack(side=LEFT)
11+
meaning = Label(frame1, text="", font=("Helvetica 10"))
12+
meaning.pack()
13+
frame1.pack(pady=10)
14+
15+
16+
# Heading Label
17+
heading_label = Label(root, text = "DICTIONARY", font=("Helvetica 21 bold"))
18+
heading_label.config(anchor=CENTER)
19+
heading_label.pack(pady=10)
20+
21+
frame = Frame(root)
22+
Label(frame, text="Enter Word", font=("Helvetica 15 bold")).pack(side=LEFT)
23+
word = Entry(frame, font=("Helvetica 15 bold"))
24+
word.pack(padx=10)
25+
frame.pack()
26+
27+
search_button=Button(root, text="Search Word", font=("Helvetica 15 bold"), command=getMeaning)
28+
search_button.config(anchor=CENTER)
29+
search_button.pack(pady=10)
30+
31+
32+
# Execute Tkinter
33+
root.mainloop()

0 commit comments

Comments
 (0)