[Tkinter-discuss] Widget to appear square-shaped on screen...
rgomez at autotrol.com.ar
Tue Jul 20 19:55:51 CEST 2010
> I'm trying to make a square-shaped board, something like this:
> from Tkinter import *
> root = Tk()
> for k in range(9):
> It shows up on my screen as rectangular (non-square) shaped. What do I have
> to do to make it appear in a square-shaped form (i.e. with Label height &
> width to be equal on the sceen)?
The problem is that you can't do that with Label widgets, because width
and height is relative to the font used. The units of width is
caracters, no pixels, and the units of height is lines, no pixels.
As a probe of concept, change Label for Canvas and eliminate the
More information about the Tkinter-discuss