-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch GUI.py
More file actions
29 lines (25 loc) · 771 Bytes
/
Copy pathsearch GUI.py
File metadata and controls
29 lines (25 loc) · 771 Bytes
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
# design and devloped by webfun
# youtube channel --webfun
# email webbhalu@gmail.com
#for any kind of help please contact on 9096141591
from tkinter import *
import wikipedia
def get_me():
entry_value = entry.get()
answer_value = wikipedia.summary(entry_value)
answer.delete(1.0,END)
answer.insert(INSERT, answer_value)
root =Tk()
topframe = Frame(root)
entry = Entry(topframe)
entry.pack( )
button = Button(topframe , text = "search",command = get_me)
button.pack()
topframe.pack(side=TOP)
bottomframe =Frame(root)
scroll =Scrollbar(bottomframe)
scroll.pack(side=RIGHT,fill =Y)
answer = Text(bottomframe, width = 30 , height=10, yscrollcommand = scroll.set, wrap = WORD)
answer.pack()
bottomframe.pack()
root.mainloop()