© William "Bo" Rothwell of One Course Source, Inc. 2020
W. ". RothwellPro Perl Programminghttps://doi.org/10.1007/978-1-4842-5605-3_12

12. Geometry Managers

William “Bo” Rothwell1 
(1)
San Diego, CA, USA
 

During the last two chapters, the focus has been on creating widgets. Now we will focus on how to place (manipulate) widgets in the window. The pack command is used to determine where widgets go and how big they will be.

It is important to understand that pack controls the size and location of the widgets; the widgets themselves do not have the ultimate control of these parameters. For example, if a widget definition "requests" to be 2 inches wide and 3 inches tall, pack will accommodate this request unless an option is passed to pack to override the ...

Get Pro Perl Programming: From Professional to Advanced now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.