Does one create an event to notify parent window/GUI of something?

Chris Green cl at
Mon Mar 13 04:37:03 EDT 2017

Michael Torrie <torriem at> wrote:
> On 03/12/2017 06:14 AM, Chris Green wrote:
> > There are (of course) event handlers for the 'Save' and 'Cancel'
> > button click events in abookeditgui, what I need is hooks from these
> > to run some code in abookgui after the abookeditgui has completed. How
> > should one do this, is there a way for a class to call code in the
> > class 'above' which instantiated it?
> Sure.  Have the child object emit custom signal that your parent object
> attaches to a callback.
Thanks, I guess this is probably the 'proper' event driven way to do
it.  What I have actually done for the moment is to hand a function
handle from the parent to the child so that the child can execute the
code at the required time.

Chris Green

More information about the Python-list mailing list