[ltk-user] ltk examples

Ken Tilton kentilton at gmail.com
Thu Nov 23 10:04:00 UTC 2006


> 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
> ?
>


So here is the Tcl/Tk, conveniently tested from a win32 command console:

> wish85
(Tcl console opens along with Tk window. In the Tcl console...)
scale .x1 -from 10 -to 100
pack .x1
.x1 get

http://aspn.activestate.com/ASPN/docs/ActiveTcl/8.4/tcl/TkCmd/scale.htm

You could also say:

        scale .x1 -variable x1-value

And then make x1-value the text variable of a label and get that working to
have some fun. Once (and perhaps not before) all that is working, replicate
in LTk.

hth, kenny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ltk-user/attachments/20061123/b80c805f/attachment.html>


More information about the ltk-user mailing list