The Personal Web Pages of Chris X. EdwardsA Simplified Tk Reference |
Welcome to my Tk reference pages. This work was compiled in order to provide a collection of simplified information about Tk commands. Each topic has a link to the relevant official man page, but those pages are so comprehensive that it is often difficult to get a quick understanding of the general usage.
This reference currently is composed with Tcl/Tk in mind, but I would like to one day expand it to cover other bindings for Perl, Python, and Scheme. If you need some help learning about the Tcl language, I encourage you to try the TclTutor.tlc by Clif Flynt. This is a GUI based training tool that is written in Tcl which allows you to read didactic descriptions of commands and then see sample code and actually run the code. It lets you play with the sample code and re-run it to see what happens.
If you just want to play with the widgets yourself without too much thinking, you can play with my sample code using the wish interpreter. Just type "wish" at a normal Linux shell prompt and if Tcl and Tk are installed, you will get a "%" prompt and a blank GUI window. You can cut and paste the sample code directly into this interpreter and see what happens.
You might be interested to know that all of the HTML for each page of this reference was produced with a Tcl program!
bind | Command |
bitmap | Image Type |
button | Primary Widget |
canvas | Primary Widget |
checkbutton | Primary Widget |
colors | Reference |
cursor | Reference |
entry | Primary Widget |
frame | Organizational Widget |
label | Primary Widget |
listbox | Primary Widget |
menu | Primary Widget |
menubutton | Primary Widget |
message | Primary Widget |
radiobutton | Primary Widget |
scale | Primary Widget |
scrollbar | Primary Widget |
text | Primary Widget |
toplevel | Organizational Widget |
Home |
This page was created with only free, open-source, publicly licensed software.
This page was designed to be viewed with any browser on any system. |
Chris X. Edwards ~ January 2004 |