Copyright (C) 2000-2012 |
Manpages DERIVEDSection: User Contributed Perl Documentation (1)Updated: 2000-04-18 Index Return to Main Contents NAMETk::Derived - Base class for widgets derived from othersSYNOPSISpackage 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(...); ... } DESCRIPTIONTk::Derived is used with perl5's multiple inheritance to override some methods 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 "cget" methods of widgets to allow the derived widget to add to or modify behaviour of the configure options supported by the base widget. The derived class should normally override the "Populate" method provided by Tk::Derived and call "ConfigSpecs" to declare configure options. The public methods provided by Tk::Derived are as follows: SEE ALSOTk::ConfigSpecs Tk::mega
IndexThis document was created by man2html, using the manual pages. Time: 06:43:25 GMT, April 20, 2024 |