[Tkinter-discuss] canvas origin is off by 2 pixels, is this normal

python at bdurham.com python at bdurham.com
Thu Jan 6 16:28:16 CET 2011


Stefanix,

When you create your Canvas, try setting these properties in your Canvas
creation statement:

borderwidth=0
highlightthickness=0

Both these properties consume visual space in your canvas.

If you need non-zero values for these properties, then just account for
the edge pixels consumed by these features when you do your layout.

Malcolm


More information about the Tkinter-discuss mailing list