[R] tcltk difficulties

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sat Nov 4 14:12:11 CET 2006


"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