Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: how to change Tk::Tree data value

by Sandy (Curate)
on Jun 15, 2011 at 14:33 UTC ( #909791=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $tree->add('1.1',-text=>'aaa',-data=>{-info=>'aaa'});
    
  2. or download this
    # get data
    my $d=$tree->infoData('1.1');
    
    # change data
    $d->{-info}='new data';
    
  3. or download this
    # set entry
    $tree->add('1.1',-text=>'aaa',-data=>'aaa');
    
    # change data for entry
    $tree->entryconfigure('1.1',-data=>'new data');
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://909791]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2015-01-31 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (258 votes), past polls