title: tkinter to display the images
body: <p>I am a newbie to python.I have a code where the image is not printed on the Tkinter.So please help me on how to display the image along with the Button and Textbox.</p>
  
  <p>Code:</p>
  
  <pre><code>import Tkinter
  from Tkinter import *
  class myproject(Tkinter.Tk):
              def __init__(self,parent):
                  Tkinter.Tk.__init__(self)
                  self.button2()
                  self.text()
                  self.image()
              def button2(self):
                  button2 = Tkinter.Button(self, text = "hello")
                  button2.grid(column=5,row=7)
              def text(self):
                  text = Tkinter.Text(self, height=3, width=31) # self.text
                  text.grid(column=1,row=3)
                  text.insert(END, "Wiilliam Skakespeare")
  
              def image(self):
  
                  logo = PhotoImage(file="linux.gif")
                  w1 = Tkinter.Label(self, image=logo).pack(side="right")
  
  
  app = myproject(None)
  app.mainloop()
  </code></pre>
  
  <p>Please help!Answers will be appreciated!</p>