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