in reply to How to install Tk-ImageButton module in perl 5.12 using ppm

According to Activestate there is no Windows package for Tk::ImageButton for Perl versions > 5.10. But all is not lost - see the following

So, save and ImageButton.pod to your C:\Perl\site\lib\Tk (or C:\Perl64 if you're running 64-bit) and you'll be good to go.

update: A quick test to make sure the above works:

use strict; use warnings; use Tk; use Tk::ImageButton; my $mw = MainWindow->new; my $someimage = $mw->Photo(-format => 'bmp', -file => 'C:/WINDOWS/Zapo +tec.bmp'); my $otherimage = $mw->Photo(-format => 'bmp', -file => 'C:/WINDOWS/Gre +enstone.bmp'); my $ib = $mw->ImageButton( -imagedisplay => $someimage, -imageclick => $otherimage, -command => [ sub { print "It works"; } ], )->pack; MainLoop;

Replies are listed 'Best First'.
Re^2: How to install Tk-ImageButton module in perl 5.12 using ppm
by Anonymous Monk on Oct 18, 2011 at 07:55 UTC

    There is no need for those desperate measures, just run cpan DHICKLING/Tk-ImageButton-1.0.tar.gz and be finished

      Which is fine, if

      1. You have a compiler. (Eg. Your company rules allow you to have a compiler on your system.)
      2. And if that compiler produces binaries compatible with your AS perl installation.
      3. And if CPAN is configured to work through you corporate firewall.
      4. And if CPAN doesn't screw your compiler environment up by insisting on downloading an ancient version of nmake.
      5. Or installing MingW without asking.
      6. Or ...

      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

        ... ta ta ta tangent ..

        Congratulations, you've the new ikegami