[R-gui] [R gui] buttonbox
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Sat Apr 17 00:32:43 CEST 2004
Erin Hodgess <hodgess at gator.uhd.edu> writes:
> Here is the Iwidget code:
> package require Iwidgets 4.0
>
> iwidgets::buttonbox .bb
>
> .bb add OK -text OK -command "puts OK"
> .bb add Apply -text Apply -command "puts Apply"
> .bb add Cancel -text Cancel -command "puts Cancel"
> .bb default OK
>
> pack .bb -expand yes -fill both
>
> So I know that I'll start with
> library(tcltk)
> tclRequire("Iwidgets")
> bb <- tkwidget(tt,"iwidgets::buttonbox")
>
>
> .
> .
> .
> tkpack(bb,expand="y",fill="both")
> It's that stuff in the middle that I'm stuck on.
>
> Any suggestions, please?
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")
There's no tkdefault(), though - unless you create the function
yourself.
--
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