in reply to Re: Tk widget derivation problems
in thread Tk widget derivation problems
Tk::Derived should precede any Tk widgets in the class's @ISA.
Update: And the reason for this appears to be so that you can pass your own arguments. If I switch the order so List appears first and Derived second, then when I create my new object with some option that I want to handle, like my $x = $mw->Foon(-taco => 'bell', -foreground => 'brown');, all the options go to the Label first, which doesn't understand -taco.
Daniel Ashbrook
|
|---|