Re: Tkinter's coordinates setting

2005-11-22 Thread Ben Bush
On 11/21/05, Steve Juranich <[EMAIL PROTECTED]> wrote: On 11/17/05, Shi Mu <[EMAIL PROTECTED]> wrote: > why subtract 1 from max_y - original_y?Because in the computer science world we like starting to count at 0.image_size = 1000original_y = 25 # Really the 26th pixel line.new_y = 1000 - 25 - 1 #

Re: Tkinter's coordinates setting

2005-11-21 Thread Steve Juranich
On 11/17/05, Shi Mu <[EMAIL PROTECTED]> 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

Re: Tkinter's coordinates setting

2005-11-17 Thread Shi Mu
On 11/17/05, Steve Juranich <[EMAIL PROTECTED]> wrote: > On 11/17/05, Ben Bush <[EMAIL PROTECTED]> wrote: > > Tkinter's coordinates setting are: the left upper corner is the smallest X > > and Y, which is different from our usual think that Y is largest in that &g

Re: Tkinter's coordinates setting

2005-11-17 Thread Steve Juranich
On 11/17/05, Ben Bush <[EMAIL PROTECTED]> wrote: > Tkinter's coordinates setting are: the left upper corner is the smallest X > and Y, which is different from our usual think that Y is largest in that > location. If i draw some lines on the canvas and show some relationship >

Tkinter's coordinates setting

2005-11-17 Thread Ben Bush
Tkinter's coordinates setting are: the left upper corner is the smallest X and Y, which is different from our usual think that Y is largest in that location. If i draw some lines on the canvas and show some relationship among them, do I need transfer the coordinates? -- http://mail.pytho