Problem in scalling............

Jeff Epler jepler at unpythonic.net
Wed Apr 30 15:52:58 EDT 2003


canvas.scale actually changes the objects themselves, not the coordinate
system of the canvas.

example:
>>> c = Tkinter.Canvas()
>>> i = c.create_rectangle((0,0,100,100))
>>> c.coords(i)
[0.0, 0.0, 100.0, 100.0]
>>> c.scale(i, 0, 0, 2, 2)
>>> c.coords(i)
[0.0, 0.0, 200.0, 200.0]

Jeff





More information about the Python-list mailing list