05.01.2013 Views

LTK - a Lisp binding to the Tk toolkit - Peter Herth

LTK - a Lisp binding to the Tk toolkit - Peter Herth

LTK - a Lisp binding to the Tk toolkit - Peter Herth

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Installation<br />

This is <strong>the</strong> shortest section of this document. You just compile <strong>the</strong> file:<br />

(compile-file "ltk")<br />

and load it:<br />

(load "ltk")<br />

Now ltk is ready <strong>to</strong> use. For trying out <strong>the</strong> examples of this document, you<br />

might want <strong>to</strong> change in<strong>to</strong> <strong>the</strong> Ltk package:<br />

(in-package :ltk)<br />

And <strong>to</strong> look, whe<strong>the</strong>r it works call <strong>the</strong> test example:<br />

(ltktest)<br />

or, for some fun:<br />

(ltk::ltk-eyes)<br />

To use Ltk you need of course tcl/tk installed. This should be default on<br />

most Linux systems, for Windows/Mac OS you need <strong>to</strong> download and install<br />

tcl/tk. Ltk has been tested against Tcl/<strong>Tk</strong> 8.4, but o<strong>the</strong>r versions should<br />

work also.<br />

Alternatively, you can use ASDF <strong>to</strong> load ltk. If you have a symbolic link<br />

<strong>to</strong> ltk.asd in your site-systems direc<strong>to</strong>ry a simple (require ’ltk) compiles and<br />

loads ltk (assuming you have ASDF loaded). And it is even installable via<br />

ASDF-INSTALL!<br />

4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!