Re: Blocking GUI



I don't really understand your goal but you could do it this way:

$button->set_image($waiting);
Glib::Timeout->add (10000, sub{
        $button->set_image(undef);
        return FALSE;   
});

Regards
Mario

Am Sonntag, den 26.06.2011, 23:51 +0000 schrieb Salvatore De Paolis:
Hi,
I'm testing something with Perl and GTK+ and I'd like an advice about how
to achieve this kind of task:

Let's take this code as example:

$button->set_image($waiting);
sleep 10;
$button->set_image(undef);

This way the button is stuck till the sleep function is completed.

regards,
Sal
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]