© 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 
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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.