[ltk-user] ltk examples

Peter Herth herth at peter-herth.de
Thu Nov 23 10:03:56 UTC 2006


Hi Bernhard,

> yes, the only demo for ltk is in fact the spinning lines demo. Demo's like
> the one you provide for your Celtk or Cells-TK would be really great for
> ltk.
> The reason why I use ltk is simply that I want to do it on my PowerBook and
> Cells and everything related to it seem only be supported on Linux and
> Windows.
> Or has anyone got it working on a Mac as well, either on openMCL or SBCL ?
>
> I am also stuck again with my ltk trials. I know that e.g. "entry" delivers
> its content as text and this can be used with (text entry_variable) It seems
> to come from a tktextvariable, according to the source in ltk.lisp.
> I was able to display a slider (scale), but I have no idea on how to get its
> current value. What type is it ? Which method needs to be used to get it ?
> If only these informations were given in the ltk documentation, it would be
> really helpful. Unfortunately, the source seems to be the only
> documentation. Nice for Lisp geeks, but problematic for people like me ;-)
>
 There is some Ltk documentation on the Ltk webpage (actually it even
mentions the answer to your question...) but I have to agree that I
could spend more time on it eventually.
In general, all widgets where it is appropriate, either have the
(settable) accessor "text" or "value", so for entries you can just
read/set it with (text entry) assuming entry is your widget instance.
All the widgets which inherit from tktextvariable have the text
accessor, those who inherit from the tkvariable class have the value
accessor.

Peter



More information about the ltk-user mailing list