Re: rename root item in a tree

Andy Todd <[email protected]> Wed, 02 Apr 2008 07:34:23 +1100
Newsgroups gmane.comp.python.pythoncard
Organization Dexter Pinion Appreciation Society
Message-ID <[email protected]>
Alex Schenkman wrote:
> I would also need to change the text shown in the root item...
> 
> Thanks again!
> 
> On 4/1/08, *Alex Schenkman* <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>     Hi:
> 
>     How can I reset a tree component?
>     I want to be able to add a new root and new children.
> 
>     Thanks in advance!
> 

I would suggest dynamically creating a new tree component in your code 
and then swapping it for the existing one when the triggering event occurs.

Examples of dynamically creating components are in the dbBrowser sample 
distributed with PythonCard.

Regards,
Andy
-- 
 From the desk of Andrew J Todd esq - http://www.halfcooked.com/


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace