[Padre-dev] on_close_window

Cezary Morga cm at therek.net
Wed Apr 29 02:58:00 PDT 2009


Gabor Szabo wrote:
> And another idea, install Wx::Demo from CPAN and check if in a code
> base much simpler
> than Padre it happens too.

I've tried wx-tetra previously 
(http://www.google.com/codesearch/p?hl=pl#T9biCA85jJE/trunk/EditFrame.pm&q=Wx::Event::EVT_CLOSE) 
and it did not happen there, that is method supplied to EVT_CLOSE was 
executed. The same goes for Wx::Demo.

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);

-- 
Pozdrawiam,
Cezary Morga
"Not a shred of evidence exists in favor of the idea that life is serious." 
(Brendan Gill)



More information about the Padre-dev mailing list