[R-gui] [R gui] buttonbox

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sat Apr 17 01:05:34 CEST 2004


Peter Dalgaard <p.dalgaard at biostat.ku.dk> writes:

> I would guess that you could do
> 
>   tkcmd(bb, "add", "OK", text="OK", command="puts OK") 
> 
> or (same thing really)
> 
>   tkadd(bb, "OK", text="OK", command="puts OK") 

Sorry, I was a bit asleep there: "puts OK" is of course Tcl, and may
or may not print something where you want it to (but probably not into
the Windows console, e.g.). More likely you'd want an R callback something
like 

...command=quote(cat("OK\n"))...

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907



More information about the R-SIG-GUI mailing list