title: Python Tkinter using pygame to play and pause audio giving error
body: <p>I am trying to make a simple mp3 player with tkinter and using pygame mixer function and the playing part of it works just fine but the pausing part is what I'm having trouble with. This is my code</p>
  <pre><code>from tkinter import *
  from pygame import mixer
  root = Tk()
  root.geometry(&quot;500x500&quot;)
  root.title(&quot;mp3 player&quot;)
  fileEntry = Entry(root, width = 50, borderwidth = 5)
  fileEntry.pack()
  def PlayMusic():
      song = fileEntry.get()
      mixer.init()
      mixer.music.load(song)
      mixer.music.play()
  def PauseMusic():
      song = fileEntry.get()
      mixer.init()
      mixer.music.load(song)
      mixer.music.pause()
      
  
  playButton = Button(root, text = &quot;Play&quot;, command = PlayMusic)
  pauseButton = Button(root, text = &quot;Pause&quot;, command = PauseMusic())
  pauseButton.pack()
  playButton.pack()
  root.mainloop()
  </code></pre>
  <p>however it gives me this error</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/Users/person/file/file/main.py&quot;, line 22, in &lt;module&gt;
      pauseButton = Button(root, text = &quot;Pause&quot;, command = PauseMusic())
    File &quot;/Users/person/file/file/main.py&quot;, line 17, in PauseMusic
      mixer.music.load(songA)
  pygame.error: No file '' found in working directory '/Users/person/file/file'.
  </code></pre>
  <p>I have no idea what is going on and I hope someone can please help me, Thanks!</p>