私はこのコードを使用しています:
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
このエラーを解決するにはどうすればよいですか?