3.2. Some Fun Things to Try
One of the best ways to figure out how Perl/Tk works is to try it. Once you understand the basics, you'll spend most of your time tweaking options and callbacks to do the correct thing. Here are some ways to learn about the button widget:
Create a window with three buttons in it. Have each button print something different when clicked on.
Create a window with three buttons. Have the first two buttons change each other's text when pressed. The last button should allow you to exit the program.
Make some really big buttons and some really tiny buttons all in the same window.
Get Learning Perl/Tk 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.