title: tkinter canvas image not displaying
body: <p>I have a simple canvas being created in a function, and i would like an image displayed on the canvas.</p>
  
  <pre><code>def start(root):
      startframe = tkinter.Frame(root)
      canvas = tkinter.Canvas(startframe,width=1280,height=720)
  
      startframe.pack()
      canvas.pack()
  
      one = tkinter.PhotoImage('images\one.gif')
      canvas.create_image((0,0),image=one,anchor='nw')
  </code></pre>
  
  <p>when i run the code i get a blank 1280x720 window, no image.</p>
  
  <p>i have looked at the following website: <a href="http://effbot.org/pyfaq/why-do-my-tkinter-images-not-appear.htm" rel="noreferrer">http://effbot.org/pyfaq/why-do-my-tkinter-images-not-appear.htm</a> but i do not understand how to apply their example to my situation (i dont know what to create a reference to or how to create a reference, if that is my problem). I have also looked at some stack overflow questions but they did not help either.</p>