title: AttributeError: 'NoneType' object has no attribute 'pack'
body: <p>I'm using this code:</p>
  
  <pre><code>if imgAct &lt; 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")
  </code></pre>
  
  <p>But I get this error:</p>
  
  <blockquote>
    <p><strong><code>AttributeError</code>:</strong> <code>NoneType</code> object has no attribute <code>pack</code></p>
  </blockquote>
  
  <p>How can I resolve this error?</p>