Re: Programmatically popup a tooltip



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]