Project Name:- Wikipedia Search software using python.
Dependencies:-
1) Install Tkinter-
Link- https://www.techinfected.net/2015/09/how-to-install-and-use-tkinter-in-ubuntu-debian-linux-mint.html
2) Install wikipedia-
for python3- pip3 install wikipedia
for python2- pip install wikipedia
****************************************//****************************************
****************************************//*****************************************
Dependencies:-
1) Install Tkinter-
Link- https://www.techinfected.net/2015/09/how-to-install-and-use-tkinter-in-ubuntu-debian-linux-mint.html
2) Install wikipedia-
for python3- pip3 install wikipedia
for python2- pip install wikipedia
****************************************//****************************************
from tkinter import * import wikipedia def search_me(): result=entry.get(1.0,END) text.delete(1.0,END) try: answer=wikipedia.summary(result) text.insert(INSERT,answer) except: text.insert(INSERT,"Pease check your spelling or Internet connection") root=Tk() root.geometry("450x450") root.title("Ganesh") topframe=Frame(root) entry=Text(topframe,width=50,height=4) entry.pack() button=Button(topframe,width=20,height=2,text="search",command=search_me) button.pack() topframe.pack(side=TOP) bottomframe=Frame(root) scroll=Scrollbar(bottomframe) scroll.pack(side=RIGHT,fill=Y) text=Text(bottomframe,width=50,height=25,yscrollcommand=scroll.set,bd=5) text.pack() scroll.config(command=text.yview) bottomframe.pack() root.mainloop()
****************************************//*****************************************

Comments