Tk demonstrations
The demonstration scripts Tk ships in its
demos directory. The programs run under wish;
the packages are the procedure files they load.
Programs#
- browse A simple directory browser. Invoke it with and argument giving the name of the directory you'd like to browse. Double-click on files or subdirectories to browse them. Control-c and control-q cause the program to exit.
- hello Creates a single button; if you click on it, a message is typed and the application terminates.
- ixset A simple Tk-based wrapper for the "xset" program, which allows you to interactively query and set various X options such as mouse acceleration and bell volume. Thanks to Pierre David for contributing this example.
- rmt Allows you to "hook-up" remotely to any Tk application on the display. Select an application with the menu, then just type commands: they'll go to that application.
- rolodex A mock-up of a simple rolodex application. It has much of the user interface for such an application but no back-end database. This program was written in response to Tom LaStrange's toolkit benchmark challenge.
- tcolor A color editor. Allows you to edit colors in several different ways, and will also perform automatic updates using "send".
- timer Displays a seconds timer with start and stop buttons. Control-c and control-q cause it to exit.
- widget Contains a collection of demonstrations of the widgets currently available in the Tk library. Most of the .tcl files are scripts for individual demos available through the "widget" program.
Packages#
- anilabel.tcl 168 lines
- aniwave.tcl 107 lines
- arrow.tcl 260 lines
- bind.tcl 78 lines
- bitmap.tcl 52 lines
- button.tcl 47 lines
- check.tcl 71 lines
- clrpick.tcl 54 lines
- colors.tcl 99 lines
- combo.tcl 62 lines
- cscroll.tcl 134 lines
- ctext.tcl 172 lines
- dialog1.tcl 25 lines
- dialog2.tcl 18 lines
- entry1.tcl 34 lines
- entry2.tcl 47 lines
- entry3.tcl 185 lines
- filebox.tcl 82 lines
- floor.tcl 1379 lines
- fontchoose.tcl 67 lines
- form.tcl 38 lines
- goldberg.tcl 1970 lines
- hscale.tcl 49 lines
- icon.tcl 51 lines
- image1.tcl 44 lines
- image2.tcl 114 lines
- items.tcl 307 lines
- knightstour.tcl 274 lines
- label.tcl 47 lines
- labelframe.tcl 76 lines
- mac_styles.tcl 265 lines
- mac_tabs.tcl 76 lines
- mac_wm.tcl 226 lines
- mclist.tcl 167 lines
- menu.tcl 184 lines
- menubu.tcl 90 lines
- msgbox.tcl 62 lines
- paned1.tcl 32 lines
- paned2.tcl 74 lines
- pendulum.tcl 206 lines
- plot.tcl 97 lines
- print.tcl 91 lines
- puzzle.tcl 82 lines
- radio.tcl 66 lines
- ruler.tcl 175 lines
- sayings.tcl 44 lines
- search.tcl 139 lines
- spin.tcl 45 lines
- states.tcl 54 lines
- style.tcl 155 lines
- systray.tcl 89 lines
- text.tcl 113 lines
- textpeer.tcl 62 lines
- toolbar.tcl 92 lines
- tree.tcl 91 lines
- ttkbut.tcl 84 lines
- ttkmenu.tcl 53 lines
- ttknote.tcl 57 lines
- ttkpane.tcl 111 lines
- ttkprogress.tcl 46 lines
- ttkscale.tcl 39 lines
- ttkspin.tcl 53 lines
- twind.tcl 358 lines
- unicodeout.tcl 126 lines
- vscale.tcl 50 lines
- windowicons.tcl 108 lines