Discuss / Python / 廖老师,是什么原因啊

廖老师,是什么原因啊

Topic source

0泡老醋

#1 Created at ... [Delete] [Delete and Lock User]

name 'Frame' is not defined

_周思思_

#2 Created at ... [Delete] [Delete and Lock User]

我也遇到这个问题了。

我学习python2.7旧版,输入文本:

name = self.nameInput.get() or 'world'

又遇到

AttributeError: Application instance has no attribute 'nameInput'

我也搞不懂怎么回事了,网上找到的方法均不能解决。

from tkinter import* 一开始有没有导入Tkinter包?


  • 1

Reply