[Tkinter-discuss] When to use a Canvas vs. a Frame from a container perspective?

python at bdurham.com python at bdurham.com
Sun Dec 19 18:35:27 CET 2010


Mick,

> I use both Canvas and Text for scrollable containers.
> I use the Canvas when I want pixel accurate placement.
>
> I use a Text widget for more lazy placement (one can place items after each other on a row, and start a new row with a "\n"). One can make spreadsheets by placing rows of entry widgets of equal width. However, with hundreds of widgets in a text widget, I find performance suffers.

I love the idea of creating scrollable containers using Text widgets.
I'll give this technique a try (with your caution about performance for
large number of widgets).

Thanks,
Malcolm


More information about the Tkinter-discuss mailing list