[Tkinter] Placing an image on exact position

Fredrik Lundh fredrik at pythonware.com
Mon May 10 10:08:27 EDT 1999


Def P wrote:
> I've been trying to write some kind of board game in Python. I'd like to use
> Tkinter for graphics. So far, I've managed to display a grid (the playing
> board) in a window; however, I did not find a way to display the pieces (which
> are GIF images) on the canvas the way I want it. 
>
> Looking at Demos\guido\imageview.py, apparently a Label instance is needed to
> display an image? How do I display this Label in the grid (the canvas) on a
> certain x,y position? Or is there another way to display images?

http://www.pythonware.com/library/tkinter/introduction/canvas-image.htm
http://www.pythonware.com/library/tkinter/introduction/canvas.htm

</F>





More information about the Python-list mailing list