我正在使用这段代码:
if imgAct < len(limg):
img = ImageTk.PhotoImage(Image.open(path+limg[imgAct]))
f=etiq.config(image = img)
f.pack(side = "bottom", fill = "both", expand = "yes")
f.pack(side = "bottom", fill = "both", expand = "yes")
但我得到这个错误:
AttributeError
:NoneType
对象没有属性pack
如何解决此错误?