From: Daniel <dan...@ya...> - 2007-02-05 22:23:37
|
Hi all,=0A=0AI know, it sounds stupid but I don't know how to quit my appli= cation from inside.=0A=0AI used the following code:=0A=0Apackage MyWindow; = =0Ause base qw(Wx::App); = =0A=0Asub OnInit {=0A my $frame =3D MyFrame->new;=0A $frame->Show( 1 );= =0A}=0A =0Apackage main;=0Amy $wxobj =3D MyWindow->new(); =0A$wxob= j->MainLoop;=0A =0AIn package MyWindow there is in function new defined:=0A= =0A $self =3D $ref->SUPER::new( undef, # parent window=0A = -1, # Window id=0A = "$title", # Titel=0A [50,50], = # Position x/y=0A [950, 600] # Size x/= y=0A );=0A=0ASo if I just do an exit() nothing h= appens but showing the waiting mouse pointer. Same if I use=0A$self->Close(= 1);=0A=0ACan someone help me please?=0A=0A=0AThanks=0ADaniel=0A=0A=0A=0A=0A= =09=09=0A___________________________________________________________ =0ATel= efonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |