title: Python module that can open AND close an image
body: <p>I've tried out PIL, Matplotlib, and pygame, they all can open an image in a new window easy, but it either can't be closed via command, or - in pygame's case - cannot reopen with a new image. Are there any module(s) that can do this?</p>
  
  <p>Here's an example of the code it goes through:</p>
  
  <pre><code>#this just waits for input from the user to continue
  def pause():
    ps = input("\n[Press 'Enter' to continue]\n")
  
  
  image = eval(unit).image
  #yes, I know eval is bad but shhhhh, it works
  
  #the main function
  def function(foo):
    #Code displays information, nothing that should cause problems
    something.display(image.png)
    #line or several lines of code to hide image()
    page(pg)
  </code></pre>
  
  <p>Is anything like this possible?
  the only requirement is that whatever window it opens to display the window can be closed, and reopened with a different image</p>