Sebast has asked for the wisdom of the Perl Monks concerning the following question:
I'm designing a super-widget that requires knowledge of its children.
Everytime a child changes size or is created or deleted, I'd like to update the super-widget automatically.
I can get the user to do a $parent->update(); every time a child is modified, but this is cumbersome and not very elegant.
In more details, I need to update the height of the super-widget when a child height is modified or when a child is created/destroyed.
Is there some kind of binding function that I can use to call the $parent->update(); subroutine?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl TK: Can a parent be made aware that a child has been modified
by zentara (Cardinal) on Dec 15, 2012 at 10:44 UTC | |
|
Re: Perl TK: Can a parent be made aware that a child has been modified
by Anonymous Monk on Dec 15, 2012 at 04:32 UTC |