Chapter 14
Tk Megawidgets
The widgets described in Chapter 11 are relatively small and simple objects created to serve a single purpose. They are designed to be combined into larger and more complex user interfaces in your application.
Many applications require more complex widgets. A program that allows a user to save or read data from a disk file will need a file selection widget that supports browsing. Many applications require a listbox or text widget that displays a scrollbar when the number of lines displayed exceeds the widget height.
Tk supports merging several widgets into a larger widget that can be reused in other applications. These compound widget interfaces are commonly called megawidgets.
The standard distribution of the Tk toolkit ...
Get Tcl/Tk, 3rd Edition 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.