Re: Programmatically popup a tooltip
- From: Quentin <squentin free fr>
- To: ofey aikon <ofey aikon gmail com>
- Cc: Gtk-Perl-List <gtk-perl-list gnome org>
- Subject: Re: Programmatically popup a tooltip
- Date: Fri, 13 May 2005 21:03:07 +0200
I've got something almost working :
my $tooltips=Gtk2::Tooltips->new;
$tooltips->set_tip($eventbox,'');
my $timeout;
$eventbox->signal_connect(enter_notify_event => sub
{ warn "@_";
$timeout=Glib::Timeout->add(1000,sub
{ my ($x,$y)=$image->get_pointer;
warn "$x,$y\n";
$tooltips->set_tip($eventbox,"pos=$x,$y");
1;
});
});
$eventbox->signal_connect(leave_notify_event => sub
{ Glib::Source->remove($timeout); });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]