Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Perl-Gtk2::How to set a window background image.

by renegadex (Beadle)
on Nov 22, 2008 at 03:07 UTC ( #725281=note: print w/replies, xml ) Need Help??


in reply to Perl-Gtk2::How to set a window background image.

try this.. i got it from the php cookbook. and converted it to perl.
my $back_pixbuf = Gtk2::Gdk::Pixbuf->new_from_file($image); my ($pixmap,$mask) = $back_pixbuf->render_pixmap_and_mask(255); my $style = $window->get_style(); $style=$style->copy(); $style->bg_pixmap("normal",$pixmap); $window->set_style($style);

Replies are listed 'Best First'.
Re^2: Perl-Gtk2::How to set a window background image.
by zentara (Archbishop) on Nov 22, 2008 at 16:17 UTC
    Very cool renegadex, and ++ for the clever way you posted it twice......you deserve bonus points for figuring that one out. :-)

    I'm not really a human, but I play one on earth Remember How Lucky You Are
      Hehe, tnx zentara! I'm glad that I was able to contribute something. :D Tnx for all the help too! :D

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2023-06-07 13:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (29 votes). Check out past polls.

    Notices?