Astan,

Maybe this should only be on the FloatCanvas list -- but I'm sending to 
wxPython-users as well for the moment.

Astan Chee wrote:
> I've added functionalities like rubberbands 

Does this work right for you? I'm getting

"EnsureIsValid(): Cannot nest wxDCs on the same window"

errors on OS-X, but I haven't had a chance to look yet at why.

> The bug that Im having problem is on line 242 of the code. In a 
> nutshell, if there are children nodes/shape with the same name the 
> connector lines becomes weird and the expand and collapse functions are 
> incomplete. Im not sure how to handle this. Any suggestions (aside from 
> having each node a unique name)? 

Here's your code:

VP1 = TreeNode("VP1", Children = leaves)
VP2 = TreeNode("VP2", Children = leaves) #doing this does not work, but

in this case, you are assigning the exact same objects as the leaves -- 
so they are going to get confused. Making another set of nodes with the 
same names seems to work:

leaves1 = [TreeNode(name) for name in elem]
leaves2 = [TreeNode(name) for name in elem]

VP1 = TreeNode("VP1", Children = leaves1)
VP2 = TreeNode("VP2", Children = leaves2)

Note that my tree implementation is pretty much a proof of concept -- 
I'm sure there are a lot of kinks to work out.

> Also I would like to add a rotate 
> function to the canvas, has anyone done this to FloatCanvas before (and 
> would like to share)?

It's been talked about, I don't know it anyone's done it. Do you want to 
rotate the whole Canvas? or rotate individual objects?

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[EMAIL PROTECTED]
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to