Re: [R] tree widget question

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Fri 28 Oct 2005 - 07:47:09 EST

tom wright <tom@maladmin.com> writes:

> I'm trying to create an app using TclTk and R
> Can someone please explain how I bind a click event to the tree widget
> (http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/TreeWidget.html)
> Ideally I'd like to bind to particular elements in the tree but tkbind
> doesnt seem to work.

You need to study the docs for the Tree widget in the BWidget package, e.g. via http://tcllib.sourceforge.net/BWman/Tree.html.

I think that you can do something like

tcl(mytree, "bindText", "<Button-1>",

                         function(node)print(node)) 

(As multiple hints in the wording should tell you, this is completely untested)

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Fri Oct 28 08:06:36 2005

This archive was generated by hypermail 2.1.8 : Fri 28 Oct 2005 - 09:48:27 EST