|
From: Daniell F. <win...@gm...> - 2007-02-05 22:48:37
|
You need to destroy any windows you have. Closing them doesn't
actually destroy them from memory.
Once you are done with the window do: $frame->Destroy();
Then you can exit();
Thanks,
Dan Freed
On Feb 5, 2007, at 4:23 PM, Daniel wrote:
> Hi all,
>
> I know, it sounds stupid but I don't know how to quit my
> application from inside.
>
> I used the following code:
>
> package MyWindow;
> use base qw(Wx::App);
>
> sub OnInit {
> my $frame = MyFrame->new;
> $frame->Show( 1 );
> }
>
> package main;
> my $wxobj = MyWindow->new();
> $wxobj->MainLoop;
>
> In package MyWindow there is in function new defined:
>
> $self = $ref->SUPER::new( undef, # parent window
> -1, # Window id
> "$title", # Titel
> [50,50], # Position x/y
> [950, 600] # Size x/y
> );
>
> So if I just do an exit() nothing happens but showing the waiting
> mouse pointer. Same if I use
> $self->Close(1);
>
> Can someone help me please?
>
>
> Thanks
> Daniel
>
>
>
>
>
> ___________________________________________________________
> Telefonate ohne weitere Kosten vom PC zum PC: http://
> messenger.yahoo.de
>
> ----------------------------------------------------------------------
> ---
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> wxperl-users mailing list
> wxp...@li...
> https://lists.sourceforge.net/lists/listinfo/wxperl-users
Daniell Freed
win...@gm...
Bereshit bara Elohim et hashamayim ve'et ha'arets...
|