]> cvs.zerfleddert.de Git - micropolis/blame - src/tk/library/demos/README
XINCLUDE: use /usr/X11R6/include everywhere
[micropolis] / src / tk / library / demos / README
CommitLineData
6a5fa4e0
MG
1This directory contains a collection of programs to demonstrate
2the features of the Tk toolkit. The programs are all scripts for
3"wish", a windowing shell. If wish has been installed in /usr/local
4then you can invoke any of the programs in this directory just
5by typing its file name to your command shell. Otherwise invoke
6wish on the file using the "-f" switch to wish, e.g. "wish -f hello".
7The rest of this file contains a brief description of each program.
8Files with names ending in ".tcl" are procedure packages used by one
9or more of the demo programs; they can't be used as programs by
10themselves so they aren't described below.
11
12hello - Creates a single button; if you click on it, a message
13 is typed and the application terminates.
14
15widget - Contains a collection of demonstrations of the widgets
16 currently available in the Tk library. Most of the .tcl
17 files are scripts for individual demos available through
18 the "widget" program.
19
20ixset - A simple Tk-based wrapper for the "xset" program, which
21 allows you to interactively query and set various X options
22 such as mouse acceleration and bell volume. Thanks to
23 Pierre David for contributing this example.
24
25rolodex - A mock-up of a simple rolodex application. It has much of
26 the user interface for such an application but no back-end
27 database. This program was written in response to Tom
28 LaStrange's toolkit benchmark challenge.
29
30timer - Displays a seconds timer with start and stop buttons.
31 Control-c and control-q cause it to exit.
32
33browse - A simple directory browser. Invoke it with and argument
34 giving the name of the directory you'd like to browse.
35 Double-click on files or subdirectories to browse them.
36 Control-c and control-q cause the program to exit.
37
38dialog - Displays a simple dialog. Click on any button and the
39 application exits.
40
41size - Takes three arguments: the name of an application, the
42 name of a widget in that application, and the name of an
43 integer-valued option for that widget. Allows you to
44 interactively resize the given option. For example,
45 start up the dialog demo, then type
46 "size dialog .bot.middle -pady" for an example.
47
48color - Similar to "size", but modifies a color option. Try
49 "color dialog .bot.middle -bg" for an example.
50
51tkSquare.c - A very simple widget to provide an example of how to
52 implement a new widget. When building a new widget you
53 may find it useful to start from this code.
Impressum, Datenschutz