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

11. Perl TK Widgets

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

The heart of TK are the widgets. Widgets are window-based components that allow the user to interact with the program. This chapter will focus on some of the more commonly used Perl TK widgets, but keep in mind that there are additional, often more advanced, widgets that you can explore on your own if you decide that you want to make some more advanced TK-based programs.

Frames

Frames are great for creating sub-windows within your primary window and grouping other widgets. To create a frame, use the following syntax:
$frame = $main ->Frame ([option => ...

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.