代码拉取完成,页面将自动刷新
同步操作将从 jack2583/PythonExamples 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Made by abhra kanti Dubey
#In this program you ask it about any topic and it will show you the data from wikipedia
#pip install wikipedia
import wikipedia
import tkinter as tk
from tkinter import *
import PIL as ImageTK
from tkinter import messagebox
root=tk.Tk()
root.title("WIKIPEDIA SEARCH")
root.geometry("1920x1080")
def summary():
query= wikipedia.page(question.get())
answer=Text(root,height=100,width=160,font=("Arial",14),wrap=WORD,bg="#7CEBC6" ,fg="black")
answer.insert(END,(query.summary))
answer.pack()
lbl1= Label(
root,
text="WIKIPEDIA SUMMARY TELLER BY ABHRA ",
font=("Verdana",25,"bold"),
width=50,
bg="yellow",
fg="red",
relief=SOLID
)
lbl1.pack(padx=10,pady=15)
question=StringVar()
quesbox=Entry(
root,
text='TELL ME YOUR QUESTION',
font=("Verdana",20,"italic"),
width=80,
textvariable=question,
relief=GROOVE,
bd=10).pack()
searchbtn=Button(
root,
text="SEARCH",
font=("Callibri",18,"bold"),
width=30,
relief=GROOVE,
bg="#4cd137",
bd=3,
command=summary,).pack()
root.mainloop()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。