Drawing Trees
Salim Zayat
zayats at red.seas.upenn.edu
Tue May 21 14:59:30 EDT 2002
This is totally an opinion question here. If one were drawing trees in
Tkinter, it would make sense to draw them on a Canvas, with CanvasTexts
for all the nodes of the tree (assuming the nodes and leaves are words).
So lets say you do something to the tree (delete a node, add a node,
etc), is it efficient to just delete everything, and redraw everything
from scratch. That it what I currently do, and the lag for large trees
is a bit of a pill. Is there a better way to do this? Can you like
store those text widgets and just use them again?
Thanks.
Salim
More information about the Python-list
mailing list