Re: blocking code after main loop
- From: "Jens Luedicke" <jens luedicke gmail com>
- To: "Michael Hartmann" <michael hartmann as-netz de>
- Cc: Gtk2-Perl List <gtk-perl-list gnome org>
- Subject: Re: blocking code after main loop
- Date: Mon, 9 Oct 2006 21:06:26 +0200
On 10/9/06, Michael Hartmann <michael hartmann as-netz de> wrote:
> Hide the window before quitting the gtk main loop:
>
> $button->signal_connect(clicked => sub { $window->hide; Gtk2->main_quit; }
> );
>
>
> jens
No, the gui only hangs when you use the "Close me" button.
yes, add that $window->hide; statement to thebutton clicked callback.
works for me.
jens
--
Jens Luedicke
web: http://perldude.de/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]