[ltk-user] slot-value

Peter Herth herth at peter-herth.de
Mon Aug 8 22:06:44 UTC 2011


Why would you want to do such a thing?
As a rule of thumb, *never* use slot-value unless your really know
that you have to do it. *Always* use the proper accessors. In the case
of label (and any other LTk widget that displays text) use (setf (text
a-label) "foo") to set the content. Equally the (text a-widget) would
be used to read the text for widgets which allow the input of text.

Peter

On Mon, Aug 8, 2011 at 6:40 PM, Haris Bogdanovich <fbogdanovic at xnet.hr> wrote:
> Hi.
>
> I try to set a label slot-value 'text  but I get error
> that slot text is missing ?
> (setf (slot-value a-label 'text) "a")
> _______________________________________________
> ltk-user site list
> ltk-user at common-lisp.net
> http://common-lisp.net/mailman/listinfo/ltk-user
>




More information about the ltk-user mailing list