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

Charles Annis, P.E.

[EMAIL PROTECTED]
phone: 561-352-9699
eFax:  614-455-3265
http://www.StatisticalEngineering.com
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter
Dalgaard
Sent: Saturday, November 04, 2006 8:12 AM
To: [EMAIL PROTECTED]
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] tcltk difficulties

"Charles Annis, P.E." <[EMAIL PROTECTED]> 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
~~~~~~~~~~ - ([EMAIL PROTECTED])                  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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to