我一直在用 Python 3.8 编写代码来帮助我研究事物,我想把它变成一个 GUI。当我这样做时,每当我点击“开始”按钮时都会收到此错误。如果你们中的任何人看到错误,这里是代码。
# Imports
import wikipedia
from tkinter import *
import time
# Code
def Application():
# Definitions
def Research():
# Defines Entry
Result = wikipedia.summary(Term)
print(Result)
# Window Specifications
root = Tk()
root.geometry('900x700')
root.title('Wikipedia Research')
# Window Contents
Title = Label(root,text = 'Wikipedia Research Tool',font = ('Arial',25)).place(y = 10,x = 250)
Directions = Label(root,text = 'Enter a Term Below',font = ('Arial,15')).place(y = 210,x = 345)
Term = Entry(root,15')).place(y = 250,x = 325)
Run = Button(root,15'),text = 'Go',command = Research).place(y = 300,x = 415)
# Mainloop
root.mainloop()
# Run Application
Application()