in reply to Re: Help me understand inheritance please!
in thread Help me understand inheritance please!
Another interesting suggestion. By your method I could take my BrowseEntry, wrap it up in a MegaWidget with the code for its associated events (listcmd and browsecmd in this case) and then use it wherever that functionality is needed. That would work, and as I think about it I could pass a coderef into the megawidget for another method that needs to be run whenever a value is selected from the drop-down.
My copy of Steve Lidie's Mastering Perl/Tk is right beside me and is falling apaprt in some places! Almost time to go and buy another.
|
|---|