O'Reilly logo

Tcl/Tk in a Nutshell by Paul Raines, Jeff Tranter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

place

place operation [arg arg...]

Communicate with the placer, which provides simple fixed placement geometry management of slave windows inside another window called the master.

The place command can take the following forms:

place slave [slave...] [options]

Same as place configure.

place configure slave [slave...] [options]

Place the given slave windows into their master. Valid options are as follows:

-in master

Pathname of window relative to which slave is to be placed. Master must be either slave's parent (the default) or a descendant of slave's parent. Also, slave and master must be descendants of the same top-level window.

-x location

The x-coordinate within the master of the anchor point for slave in screen units.

-relx location

The x-coordinate within the master of the anchor point for slave as a relative distance along the master's width. A value of 0.0 corresponds to the left edge of the master and 1.0 to the right edge. Location need not be in the range 0.0–1.0. If both -x and -relx are specified, their values are summed.

-y location

The y-coordinate within the master of the anchor point for slave in screen units.

-rely location

The y-coordinate within the master of the anchor point for slave as a relative distance along the master's height. A value of 0.0 corresponds to the top edge of the master and 1.0 to the bottom edge. Location need not be in the range 0.0–1.0. If both -y and -rely are specified, their values are summed.

-anchor anchorPos

Which point of slave is to be positioned ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required