The svalue()
method returns the value of the
widget. For a label, this is the text as a single string
(which may not include a "\n" for newlines if not supported by
the toolkit).
The svalue<-()
method can be used to set the value of
the widget. For labels and buttons, value with length greater
than one are pasted together collapsed with "\n".
The addhandlerclicked
method specifies a handler to be
called on click events.
Although in some toolkits, labels are meant to hold static text,
gWidgets treats label widgets like other widgets allowing the user to
bind handlers to mouse clicks. 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.