[R] tcltk difficulties

Charles Annis, P.E. Charles.Annis at StatisticalEngineering.com
Sat Nov 4 14:24:08 CET 2006


Thank you, Peter.  The code provides a great example of packing the widget
nicely too.

Charles Annis, P.E.

Charles.Annis at StatisticalEngineering.com
phone: 561-352-9699
eFax:  614-455-3265
http://www.StatisticalEngineering.com
 

-----Original Message-----
From: pd at pubhealth.ku.dk [mailto:pd at pubhealth.ku.dk] On Behalf Of Peter
Dalgaard
Sent: Saturday, November 04, 2006 8:12 AM
To: Charles.Annis at statisticalengineering.com
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] tcltk difficulties

"Charles Annis, P.E." <Charles.Annis at statisticalengineering.com> writes:

> Friends:
> 
> I have a tcltk widget for inputting constants and other values that are
> needed by subsequent R functions.  My widget works well.  I have an OnOK
> function that does what I had hoped it would.  Among other input items the
> widget also uses 6 radio buttons to select one of 6 choices.  It functions
> as it should.
> 
> Here is the problem:  I would like one of the buttons to be the default
and
> to be switched on when the widget is created so that the user will have
some
> guidance.  (Currently all 6 buttons are blank until one is selected.)  I
> can't handle the job.  I have Welch and Jones _Practical Programming in
Tcl
> and Tk_ but would appreciate any help from fellow R users.

 library(tcltk)
 demo(tkdensity)
 # possibly:
 # options(pager=tkpager)
 file.show(system.file("demo/tkdensity.R",package="tcltk"))



-- 
   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 at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list