title: How can I display an image in Python 3 using tkinter/ttk?
body: <p>The nub of the matter is, what am I doing wrong in the following code snippet?</p>
  
  <pre><code>    from tkinter import *
      from tkinter.ttk import *
  
      root = Tk()
  
      myButton = Button(root)
      myImage = PhotoImage(myButton, file='myPicture.gif')
      myButton.image = myImage
      myButton.configure(image=myImage)
  
      root.mainloop()
  </code></pre>
  
  <p>The error message I get from idle3 is as follows:</p>
  
  <pre><code>    &gt;&gt;&gt; 
      Traceback (most recent call last):
        File "/home/bob/Documents/Python/tkImageTest.py", line 9, in &lt;module&gt;
          myButton.configure(image=myImage)
        File "/usr/lib/python3.2/tkinter/__init__.py", line 1196, in configure
          return self._configure('configure', cnf, kw)
        File "/usr/lib/python3.2/tkinter/__init__.py", line 1187, in _configure
          self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
      TypeError: __str__ returned non-string (type Button)
      &gt;&gt;&gt; 
  </code></pre>
  
  <p>This error message has me stumped, I simply don't understand what it is trying to say. Any ideas?</p>
  
  <p>I would also appreciate suggestions for changes...</p>