Re: Blocking GUI
- From: Mario Kemper <mario kemper googlemail com>
- To: Salvatore De Paolis <iwkse-ml gmx com>
- Cc: gtk-perl-list gnome org
- Subject: Re: Blocking GUI
- Date: Mon, 27 Jun 2011 01:57:15 +0200
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]