The svalue() method returns the value of the widget. For
a label, this is the text. For a button, the same. For an image,
it is the filename of the figure or the stock icon name, if the
icon was set from a stock icon.
The svalue<-() method can be used to set the value of
the widget. For an image, the value is a filename containing the
image to display.
The addhandlerclicked method is called on click
events.
For labels, if editable=TRUE is specified,
clicking on the text allows one to edit the label's value
overriding the click handler in the process. However, the
addhandlerchanged handler can be given to respond to the
text after it has been chnaged.
glabel("a label", container=TRUE)
glabel("Click me to edit label", editable=TRUE, container=TRUE)
glabel("Click me for a message", container=TRUE,
handler=function(h,...) {cat("Hi\n")})