Appendix A. Configuring Widgets with configure and cget
Every widget included in the Perl/Tk distribution (and some not included, but available separately) can use the configure and cget methods. No matter the widget, the arguments to these functions are the same, and the results passed back have the same format.
The configure method allows you to assign or change the value of an option to the widget. It can also be used to retrieve the current value of the option. The cget method cannot assign values, but simply retrieves them with simpler syntax than that of configure.
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.