in reply to Tk widget derivation problems
Cheers,package Tk::Foon; use base qw(Tk::Label Tk::Derived); #<= changed order Construct Tk::Widget 'Foon'; sub ClassInit { my($class, $mw) = @_; $class->SUPER::ClassInit($mw); } sub Populate { my($self, $args) = @_; $self->SUPER::Populate($args); $self->ConfigSpecs('DEFAULT' => [ 'SELF' ]); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Tk widget derivation problems
by anjiro (Beadle) on Aug 03, 2003 at 00:20 UTC |