Tkinter's coordinates setting

Steve Juranich sjuranic at gmail.com
Mon Nov 21 18:30:48 EST 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