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

5.1. Dimensions

Various lengths, widths, and other dimensions of widgets can be described in many different units.

  • If you set a dimension to an integer, it is assumed to be in pixels.

  • You can specify units by setting a dimension to a string containing a number followed by:

    Table 3. Dimensional units

    cCentimeters
    iInches
    mMillimeters
    pPrinter's points (about 1/72″)