tkPACK: A Demonstration of Packing Geometry
Management in Tk
The following is a Tclet that demonstrates how the packer
geometry manager works in Tcl/Tk. It requires the
Tcl/Tk plugin (version 2.0 or higher)
to be installed in your browser. If you don't have the plugin
installed, you probably won't see anything useful below. Source
code for the packer
demo can be downloaded here.
- Clicking
on the Spawn buttons will create buttons on the top,
bottom, left, and right of the cavity.
-
Clicking on each button
makes this button active, and its geometry management
information is displayed at the bottom. Make changes to the
geometry information and watch the widgets respond!
-
The ShrinkWrap button removes the artifical space
in the center and shows how the arrangement will appear by
default. This trick works by turning on and off the
"pack propagate" geometry property of the enclosing frame.
-
Clicking Destroy will destroy the
selected button.
Qustions or comments: [email protected]