title: Tkinter Cannot Find Image when it is in the same folder
body: <p>I am trying to learn how to add images to tkinter (using a lot of youtube codemy videos).  I have a kingdom management game I have been writing where I have been able to successfully add images as labels and as buttons and have them update as you progress through seasons of time in game.</p>
  <p>However, when I started a new py file to work on a separate part of the code, suddenly Pycharm could not find any of the images and I got a:</p>
  <blockquote>
  <p>&quot;tkinter.TclError: couldn't open &quot;summer.png&quot;: no such file or directory&quot;.</p>
  </blockquote>
  <p>So, I copied my code that worked in the main instance in a separate py file and it still does not work and I get the same error.  So, for whatever reason, in one file the same code is able to be used and it finds the png but in a second instance (with the &quot;same&quot; code) it cannot.  Also, hovering over the image path allows me to see the image in Pycharm so I know it is still there (the images are in the same folder as my python project). I am wondering if there is something simple I am not seeing. All the below image paths work in my main program but it fails when I attempt to replicate it.</p>
  <pre><code>from tkinter import *
  import pickle
  import random
  from pathlib import Path
  
  root = Tk()
  root.title(&quot;The Crumbling Kingdom&quot;)
  root.geometry(&quot;1300x800&quot;)
  
  bgsummer = PhotoImage(file=&quot;summer.png&quot;)
  worldmap = PhotoImage(file=&quot;map1.png&quot;)
  bgspring = PhotoImage(file=&quot;spring.png&quot;)
  bgwinter = PhotoImage(file=&quot;winter.png&quot;)
  bgfall = PhotoImage(file=&quot;fall.png&quot;)
  worldmap = PhotoImage(file=&quot;map1.png&quot;)
  table = PhotoImage(file=&quot;table.png&quot;)
  side = PhotoImage(file=&quot;side.png&quot;)
  backgroundimage = bgspring
  my_background=Label(root, image= backgroundimage)
  my_background.place(x=0,y=0, relwidth = 1, relheight =1)     
  </code></pre>