Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

background image with Tk::Trees?

by Anonymous Monk
on Mar 09, 2006 at 19:22 UTC ( [id://535474]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I know it's possible to set the background color for Tk-Trees, but does anyone know if it's possible to use either a *.gif or *.png image?

Thanks!

Replies are listed 'Best First'.
Re: background image with Tk::Trees?
by zentara (Cardinal) on Mar 09, 2006 at 21:35 UTC
    I've never seen it done, but if it could be done, it would probably be with Tk::ItemStyle. A hack is to use 'place' to put an image on the background, then pack widgets on top of it. But without transparency, it dosn't do exactly what you want.

    I'm not really a human, but I play one on earth. flash japh
      I know it was done on the roster window for the Coccinella project, but with Tcl Tk . I was hoping there was a way with Perl Tk. I'll give the ImageStyle module a whirl.

      Thanks!

        You can use Tcl/Tk with Tcl::Tk or Tkx modules from CPAN, so to achieve this effect

        Best regards,
        Courage, the Cowardly Dog

        Man that Coccinella looks nice dosn't it? It looked like they show the background image is part of their "Themes" support. Perl/Tk dosn't support themes yet, I hear it is promised in the future. Gtk2-Perl supports Themes now.

        I'm not really a human, but I play one on earth. flash japh

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://535474]
Approved by Corion
Front-paged by Courage
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-12-08 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (50 votes). Check out past polls.