title: How to display an image using tkinter in gui
body: <blockquote>
    <p>The given code is not working, as it gives the error of file not found
    for 'haridwar.jpg' though I tried putting it in in Python35 and also
    on desktop. Please help</p>
  </blockquote>
  
  <pre><code>import tkinter as tk  
  from PIL import Image,ImageTk  
  root = tk.Tk()  
  root.title("display image")  
  im=Image.open("haridwar.jpg")  
  photo=ImageTk.PhotoImage(im)  
  cv = tk.Canvas()  
  cv.pack(side='top', fill='both', expand='yes')  
  cv.create_image(10, 10, image=photo, anchor='nw')  
  root.mainloop()
  </code></pre>