python tkinter: displays only a portion of an image python tkinter: displays only a portion of an image tkinter tkinter

python tkinter: displays only a portion of an image


You have to set the anchor to NW (NorthWest) because its value is CENTER by default, which as the name suggests centers the image on the given coordinates:

self.canvas.create_image(0,0, image=image1, anchor=NW)

Or you can change that later if you keep the image id:

self.idImage = self.canvas.create_image(0,0, image=image1)...self.canvas.itemconfig(self.idImage, anchor=NW)

http://effbot.org/tkinterbook/canvas.htm#Tkinter.Canvas.create_image-method