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
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to