The CamlTk interface
The CamlTk interface for Tk4.0
François Pessaux and François Rouaix
Introduction
Tk is a GUI (graphical user-interface) library for the Tcl language.
Normally, Tk is controlled from Tcl. The purpose of the CamlTk
interface is to provide a Caml Light library to control Tk from Caml Light programs. Thus, Tk can be used to program user-interfaces in Caml Light without knowledge of the Tcl language.
Installation
- This release runs only on Unix systems.
- You need Caml Light 0.7.
- You need to have Tcl and Tk installed (that is, at least the
include files and libraries).
This release has been tested with Tcl 7.4 and Tk 4.0, and is not
compatible with previous releases of TclTk.
This documentation
The present documentation is sketchy, thus some basic background
about toolkits, event-driven programming, and Tk is assumed.
Documentation for Tk is currently available in [ouster94],
[welch95], and in the man pages of the Tk distribution.
What you will find here is:
- The user's manual:
- a short tutorial describing how to write Caml Light programs using the Tk interface and how to compile them.
- The implementor's manual:
- describing how the interface library is
generated from a high-level description, and some technical details on
the interface. This part is of interest mainly for
expert Tk users who wish to extend the interface to support more
functions, more widgets, or simply to fix bugs in test versions.
- The Tentative reference manual:
- the collection of interface files
from the library.
The CamlTk distribution also includes a first shot at a Caml Light browser,
an hypertext tool that may help in finding the types of functions or
types definitions available in Caml Light libraries.
Bug reports
Please report problems and bugs directly to Francois.Rouaix@inria.fr
instead of Caml Light mailing lists.
Don't hesitate to make comments and suggestions, or ask questions.
Acknowledgments
Thanks to Loic Prylli, Christophe Raffalli, Hendrik Tews, Leszek Holenderski
for bug reports.
Thanks to Pierre Weis for many comments and suggestions during the
development and testing phases.