18 Jul 17:41
Re: in TreeNode, what is the difference between add and move traits
From: David C. Morrill <dmorrill@...>
Subject: Re: in TreeNode, what is the difference between add and move traits
Newsgroups: gmane.comp.python.enthought.devel
Date: 2008-07-18 15:41:27 GMT
Subject: Re: in TreeNode, what is the difference between add and move traits
Newsgroups: gmane.comp.python.enthought.devel
Date: 2008-07-18 15:41:27 GMT
Danny Shevitz wrote: > I've been looking at the source and I can't figure out what the difference > is between the 'add' and 'move' traits in a TreeNode. I am aware the the > 'move' trait can be a list of tuples to convert type, but if you just gave > it a singleton, it seems identical in all respects to 'add'. > > Can someone please enlighten me? > > You are correct that they are almost identical. As I recall, the difference is that the items in the 'add' list can be added by the user by right clicking on the node and adding them from the context menu. Whereas the 'move' items must already exist somewhere in the tree and can be moved to be children of the node. Of course 'add' items can also be 'moved', so they are a superset of 'move' items functionally. Hope that helps... Dave Morrill
RSS Feed