title: PyGtk: change image after window's main() method?
body: <p>I'm using a gtk.Image widget to display a picture in a gtk window. I can set the image to be displayed before I call window.main(), but after I've done that the image won't change any more. Basically:</p>
  
  <pre><code>import pygtk
  pygtk.require('2.0')
  import gtk
  
  (...)
  
  window= Window()
  window.canvas= gtk.Image()
  window.window.add(sprite.window.canvas)
  window.canvas.show()
  window.canvas.set_from_file("pic1.gif")
  window.main()
  window.canvas.set_from_file("pic2.gif")
  </code></pre>
  
  <p>pic1.gif will be displayed. Is there a proper way of changing the image (I don't care if I have to use a widget other than gtk.Image)? All I can think of is destroying the window and creating a new one.</p>
  
  <p>Edit:
  I realized my mistake... I called window.main() for every window and any window's destroy event called gtk.main_quit(). Had to make slight adjustments, but it works now. Even after calling window.main() :)</p>