Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by keszler (Priest)
on Oct 18, 2011 at 05:28 UTC ( #932064=note: print w/ replies, xml ) Need Help??


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 ImageButton.pm 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;


Comment on Re: How to install Tk-ImageButton module in perl 5.12 using ppm
Select or Download Code
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932064]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-12-26 23:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls