Jump to: navigation, search


1,403 bytes added, 4 years ago
no edit summary
== About LTK ==
LTK is a Common Lisp binding for the Tk graphics toolkit. It does not require any Tk knowledge for its usage. As it is written in pure Lisp, it is highly portable.
The LTK documentation can be read [ online] or is available as a [ PDF] here.
Visit the Ltk user mailinglist at Comments and suggestions for further development are very welcome.
To install ltk:
###i## emerge -av dev-lisp/ltk
It is necessary to have a common lisp interpreter. There are many available in the repository but for purposes of this document we will use SBCL:
###i## emerge -av dev-lisp/sbcl
The LTK library will be installed in {{c| /usr/share/common-lisp/source/ltk}}
=== A Simple Example ===
Here is a simple test program to see that it is working properly:
{{file|name=test.lisp|lang=lisp|desc=A simple test of LTK |body=
#! /usr/bin/sbcl --script
(load "/usr/share/common-lisp/source/ltk/ltk")
(in-package :ltk)
Save the file and set it's permissions so that it can be executed:
$ ##i##chmod +x ./test.lisp
Execute the file:
$ ##i##./test.lisp
You should see this test program if everything is working properly:

Navigation menu