Next: Event Handling
Up: Basic Tk
Previous: Bitmaps and Pixmaps
Many Tk commands accept distances or coordinates.
In the Tk coordinate system, higher x coordinates are to the right
and higher y coordinates to the bottom (!).
A distance is an integer or a floating point value
followed by one of the unit specifiers, e.g. 12c
for 12 cm.
The available units are
- pixels (the default). Note that these units are
dependent on the particular display and may be displayed
quite differently on other screens.
Pixels are often used to specify the border around a widget
or similar distances whose size should be exactly a couple
of pixels.
- c - centimeters
- i - inches
- m - millimeters
- p - points (1/72 inch)
Micha Meier
Tue Jul 2 09:49:39 MET DST 1996