rectangles, or cavases, or ... ?
Alan G Isaac
alan.isaac at gmail.com
Mon Apr 20 20:35:36 EDT 2009
On 4/20/2009 7:43 PM John McMonagle apparently wrote:
> Approach 1: put many rectangles on a single canvas
>
> This is the most flexible approach. It allows you to take advantage of
> Tkinter canvas tag bindings to interact with individual or groups of
> canvas items. It also allows you to use some pretty handy find methods
> for the canvas items (find_closest, find_withtag, etc). You can
> configure properties of the item, such as fill colour, without needing
> to redraw all the items.
>
> The downside of this approach is, because each rectangle you draw is a
> canvas item, it is also an object. The implications of this is that
> your memory usage increases with the more items you draw.
Great summary, and you clued me into a bunch of
methods I had not explored.
Thanks!
Alan
More information about the Python-list
mailing list