Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Tk, images, where do I begin.

by clintp (Curate)
on Jul 28, 2002 at 00:33 UTC ( #185789=note: print w/ replies, xml ) Need Help??


in reply to Tk, images, where do I begin.

Little bit to get you started:

use Tk; use Tk::Photo; my $mw=new MainWindow; my $foto=$mw->Photo(-file => 'picture.gif'); $mw->Button(-image => $foto)->pack(); $mw->MainLoop;
I could have attached the $foto object to any widget that will take a -image option (i.e. Label) or a canvas (with createImage()).


Comment on Re: Tk, images, where do I begin.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2014-07-13 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (248 votes), past polls