How to identify the new window lauched

Hi,

In my wxPython application if any error message comes.i should be notifyed, so that i can call someother method..

I want to what callback function i have to use…

kindly Give some example program for how to notify the event

Thanks in Advance

Regards

Bala