Tk-ImageButton
view release on metacpan or search on metacpan
ImageButton.pm view on Meta::CPAN
$Tk::ImageButton::VERSION = '1.0';
package ImageButton;
use strict;
use Tk;
require Tk::Label;
use base qw(Tk::Derived Tk::Label);
Construct Tk::Widget 'ImageButton';
sub ClassInit
{
my ($class, $mw) = @_;
$class->SUPER::ClassInit($mw);
$mw->bind($class, '<Enter>', \&_IBEnter); # Call _IBEnter when the mouse moves over the button.
$mw->bind($class, '<Leave>', \&_IBLeave); # Call _IBLeave when the mouse moves off the button.
( run in 0.935 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )