运行python程序期间在Visual Stdio Code中获取错误

时间:2018-07-22 06:47:10

标签: python python-3.x

我的代码是:

from tkinter import *

window = Tk()

button1 = Button(window, text = 'Execute')
button1.grid(row = 0, column= 0)

input1 = Entry(window)
input1.grid(row = 0, column = 1)

text1 = Text(window, height = 1, width = 20)
text1.grid(row = 0, column = 2)

window.mainloop()

错误是:

[pylint] F0002:<class 'RuntimeError'>: generator raised StopIteration

image也供参考。

0 个答案:

没有答案