[Tkinter-discuss] When to use a Canvas vs. a Frame from a container perspective?
michael.odonnell at uam.es
Sat Dec 18 18:47:15 CET 2010
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
However, with hundreds of widgets in a text widget, I find performance
On Fri, Dec 17, 2010 at 10:07 PM, <python at bdurham.com> wrote:
>> However I agree, it's better to use create_window() to avoid pitfalls like this.
> 1. So the proper way to use Canvases as containers for traditional
> widgets is to manually handle layout and place all widgets via the
> create_window() method.
> 2. The only reason to use a Canvas as a container for traditional
> widgets is when you need a scrollable container.
> Are those points accurate?
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
More information about the Tkinter-discuss