Tkinter's coordinates setting

Steve Juranich sjuranic at gmail.com
Tue Nov 22 00:30:48 CET 2005


On 11/17/05, Shi Mu <samrobertsmith at gmail.com> wrote:
> why subtract 1 from max_y - original_y?

Because in the computer science world we like starting to count at 0.

image_size = 1000
original_y = 25 # Really the 26th pixel line.
new_y = 1000 - 25 - 1 # 26 pixels from the bottom of the screen.

--
Steve Juranich
Tucson, AZ
USA



More information about the Python-list mailing list