Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Answer: How do I change the icon on Toplevel?

( #151460=categorized answer: print w/ replies, xml ) Need Help??

Q&A > GUI Programming > How do I change the icon on Toplevel? contributed by Anonymous Monk

Check out the $toplevel->Icon method. Here's a short example:

my $image = $top->Photo( -data => $imageDat, -format => 'gif' ); $top->Icon( -image => $image );
I tested this on ActiveState Perl 5.6.1 build 631, Tk 800.023.

Comment on Answer: How do I change the icon on Toplevel?
Select or Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (18)
As of 2015-07-30 18:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls