Perl/Tk saves your favourite tools

Main
back: Mega widget -1
next: Mega widget -3 ;0

The label DEFAULT where you expect an option-flag in the ConfigSpecs list means that all the options not understood by this mega-widget itself are passed-on to that subwidget(s). You can be more precise with the Delegates facility.

In the example, -fg is defined to be an alias for -foreground. Although: this specific alias is already defined by Tk, so you don't have to specify this yourself.

Mega-widgets have more types of option-flags than derived widgets. The manual-page Tk::configspec will help you on your way.

 
Mega widget -1 Mega widget -3 ;0

Created by Mark Overmeer with PPresenter on 11 juli 2001.