in reply to Re^2: Perl Tk Spaces in Text of Labels
in thread Perl Tk Spaces in Text of Labels

Update:
I have now come up with a solution that others may like to hear.
The situation is that I want a row of headings above a vertically scrolling pane.
The pane had frame and the frame a grid of ‘cells’ that corresponded to the heading row.
I am using the grid packing method.
I did want to use proportion fonts since these look better that fixed width fonts.
I created an gif file of the headings by:
1. getting a screen dump of the gui without the headings;
2. using a graphics application to view the screen shot;
3. lay out the headings as text so that these were positioned correctly:
4. save just the headings with the background of the GUI as a gif file;
5. used the gif file on the label.
Perhaps not perfect but certainly acceptable.

Replies are listed 'Best First'.
Re^4: Perl Tk Spaces in Text of Labels
by zentara (Cardinal) on Jul 03, 2008 at 15:59 UTC
    The one drawback to using a graphic as a header, is what happens if someone wants to resize the whole window. With a graphic label, you will be forced into a certain window geometry. But if it works for you, great.

    I'm not really a human, but I play one on earth CandyGram for Mongo
      Switch to SVG? :D
        Tk dosn't support SVG, but Gtk2 does. I've made little apps that auto resize an svg with window resizing, and I will tell you that learning how to pack is alot easier. :-)

        I'm not really a human, but I play one on earth CandyGram for Mongo