Help for this page
$main::wxobj->Destroy; $main::wxobj->new;
# The main program $wxobj = MyApp->new(); # New HelloWorld application ... # when $destroy is called from within $self, # the MainLoop stops $wxobj->MainLoop;