powered by
gcheckbox(text, checked = FALSE, handler = NULL, action = NULL, container = NULL, ..., toolkit = guiToolkit())
TRUE
FALSE
The svalue method returns a logical indicating TRUE if the box is checked.
svalue
The svalue<- method can be used to set the value using a logical.
svalue<-
The "[" method returns the label on the box.
"["
The "[<-" method can be used to change the label on the box.
"[<-"
Any addhandlerchanged handler is called when the button is toggled.
addhandlerchanged
gWidgets-methods
Event Handlers are detailed in gWidgets-handlers.
gWidgets-handlers
gcheckbox("checked", container=TRUE, handler=function(h,...) { cat("The widget is checked?",svalue(h$obj), "\n") })
Run the code above in your browser using DataLab