Class Pack

(back to index)

Container to pack child widgets tightly together

Inherits from Group

Property index

spacing

Description

This widget compresses and aligns widgets placed in it.

If the type property is Packtype.horizontal all the children are resized to the height of the Pack, and are moved next to each other horizontally. If type is Packtype.vertical then the children are resized to the width and are stacked below each other. Then the Pack resizes itself to surround the child widgets.

You may want to put the Pack inside an Scroll

Detailed reference

spacing: integer

The number of extra pixels of blank space that are added between the child widgets.


doctool generated at Sun Aug 5 20:52:29 2001