This is an unofficial mirror of Tkinter reference documentation (based on Python 2.7 and Tk 8.5) created by the late John Shipman. It was last updated in 2013 and is unmaintained.

Next / Previous / Contents

Tkinter 8.5 reference: a GUI for Python

organizational logo

5.2. The coordinate system

As in most contemporary display systems, the origin of each coordinate system is at its upper left corner, with the x coordinate increasing toward the right, and the y coordinate increasing toward the bottom:

The base unit is the pixel, with the top left pixel having coordinates (0,0). Coordinates that you specify as integers are always expressed in pixels, but any coordinate may be specified as a dimensioned quantity; see Section 5.1, "Dimensions".


Next: 5.3. Colors
Contents: Tkinter 8.5 reference: a GUI for Python
Previous: 5.1. Dimensions

John W. Shipman
Comments welcome: tcc-doc@nmt.edu
Last updated: 2013年12月31日 17:59
Original URL: http://www.nmt.edu/tcc/help/pubs/tkinter/web/coordinates.html

AltStyle によって変換されたページ (->オリジナル) /