[R-gui] gtree question

Antje niederlein-rstat at yahoo.de
Mon Aug 18 12:41:22 CEST 2008


I've found the solution :-)

svalue(h$obj[])

Antje



Antje schrieb:
> Hello,
> 
> I'd like to know how I can get the whole path if I doubleclick on an 
> item of the gtree.
> So far, I added a handler and printed the selection:
> 
> dblClickTree <- function(h,...) {
>     print(svalue(h$obj))
> }
> 
> gtree(offspring, hasOffspring, icon.FUN = icon.FUN, container=g1, 
> expand=TRUE, handler = dblClickTree)
> 
> But I only get the element I've clicked on but not it's parent elements 
> up to the root of the tree.
> 
> Can anybody help me to solve this?
> 
> Antje
> 
> _______________________________________________
> R-SIG-GUI mailing list
> R-SIG-GUI at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-gui
>



More information about the R-SIG-GUI mailing list