MAN page from Other perltk-800.022_5.00503-1.i386.rpm
DERIVED
Section: User Contributed Perl Documentation (1)
Updated: perl 5.005, patch 03
Index NAME
Tk::Derived - Base class for widgets derived from others
SYNOPSIS
package Tk::Whatever; require Tk::Something; require Tk::Derived;
@ISA = qw(Tk::Derived Tk::Something);
sub Populate { my ($cw,$args) = @_; ... $cw->SUPER::Populate($args); $cw->ConfigSpecs(...); ... } DESCRIPTION
Tk::Derived is used with perl5's multiple inheritance to override somemethods normally inherited from Tk::Widget.
Tk::Derived should precede any Tk widgets in the class's @ISA.
Tk::Derived's main purpose is to apply wrappers to configure and cgetmethods of widgets to allow the derived widget to add to or modify behaviourof the configure options supported by the base widget.
The derived class should normally override the Populate method providedby Tk::Derived and call ConfigSpecs to declare configure options.
The public methods provided by Tk::Derived are as follows:
- ->ConfigSpecs(-key => [kind, name, Class, default], ...)
SEE ALSO
Tk::ConfigSpecsTk::mega
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- SEE ALSO
This document was created byman2html,using the manual pages.