title: _tkinter.TclError: couldn't open "sample.gif": no such file or directory
body: <p>There's a really weird problem with tkinter.</p>
  
  <p>I can usually show the images on tkinter.
  But, I can not show any images on it if I try to load music files.</p>
  
  <p>For example,</p>
  
  <pre><code>import tkinter as Tk
  
  class Frame(Tk.Frame):
  
  def __init__(self, master=None):
      Tk.Frame.__init__(self, master)
  
  
      self.f = Tk.Frame(self)
      self.f.pack()
  
      self.ARTWORK = ['guthrie.gif']
  
      self.f_artwork = Tk.Frame(self.f)
      self.f_artwork.pack()
      self.artwork_img = Tk.PhotoImage(file=self.ARTWORK[0])
  
      self.artwork_la = Tk.Label(self.f_artwork, image=self.artwork_img)
      self.artwork_la.pack()
  
  if __name__ == '__main__':
  
  f = Frame()
  f.pack()
  f.mainloop()
  </code></pre>
  
  <p>I can show the image in this case, but</p>
  
  <pre><code>import tkinter as Tk
  import os
  from tkinter.filedialog import askdirectory
  import pygame
  
  song_list = []
  
  directory = askdirectory()
  os.chdir(directory)
  
  for file in os.listdir(directory):
      if file.endswith('.mp3'):
          realdir = os.path.realpath(file)
          song_list.append(file)
  
      pygame.mixer.init()
      pygame.mixer.music.load(song_list[0])
      pygame.mixer.music.play()
  
  
  
  
  pygame.mixer.init()
  pygame.mixer.music.load(song_list[0])
  pygame.mixer.music.play()
  
  class Frame(Tk.Frame):
  
  def __init__(self, master=None):
      Tk.Frame.__init__(self, master)
  
  
      self.f = Tk.Frame(self)
      self.f.pack()
  
      self.ARTWORK = ['guthrie.gif']
  
      self.f_artwork = Tk.Frame(self.f)
      self.f_artwork.pack()
      self.artwork_img = Tk.PhotoImage(file=self.ARTWORK[0])
  
      self.artwork_la = Tk.Label(self.f_artwork, image=self.artwork_img)
      self.artwork_la.pack()
  
  if __name__ == '__maim__':
  
  f = Frame()
  f.pack()
  f.mainloop()
  </code></pre>
  
  <p>For this program, I cannot show the image on Tkinter.
  Tkinter cannot recongnize the file.
  Error message is 
  _tkinter.TclError: couldn't open "guthrie.gif": no such file or directory</p>
  
  <p>Can you tell me what the cause is?</p>