I suspect that approach might be somewhat backwards :) Adam K 2009/4/29 Cezary Morga <cm at therek.net>: > It seems that EVT_CLOSE event is not sent to Padre::Wx::Main, instead it goes > to Padre::TaskManager. When I add following to on_close method of > Padre::TaskManager all's OK: > $main->on_close_window($event);