L'ajout d'une image d'arrière-plan en python

J'essaye d'ajouter une image d'arrière-plan d'une toile en Python. Jusqu'à présent, le code ressemble à ceci:

from Tkinter import *
from PIL import ImageTk,Image

... other stuffs

root=Tk()
canvasWidth=600
canvasHeight=400
self.canvas=Canvas(root,width=canvasWidth,height=canvasHeight)
backgroundImage=root.PhotoImage("D:\Documents\Background.png")
backgroundLabel=root.Label(parent,image=backgroundImage)
backgroundLabel.place(x=0,y=0,relWidth=1,relHeight=1)
self.canvas.pack()
root.mainloop()

C'est au retour d'une AttributeError: PhotoImage

OriginalL'auteur user1689935 | 2012-11-30