Tkinter's coordinates setting

Ben Bush pythonnew at gmail.com
Tue Nov 22 15:06:46 CET 2005


On 11/21/05, Steve Juranich <sjuranic at gmail.com> wrote:
>
> 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
> --
> http://mail.python.org/mailman/listinfo/python-list
>

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20051122/f0216f49/attachment.html>


More information about the Python-list mailing list