in reply to Tk Misalignment

Morning ...

I can't replicate your problem on my system (Perl 5.004.04 on Sun Solaris, running Tk 400.202) - it seems to align OK for me.

Something I did notice is that you're using only alternate rows in the grid when you're laying out the widgets. With my version of Tk, this has the same effect as using consecutive rows: grid doesn't leave any extra space for the empty rows.

It's possible that it's this that's causing the bad alignment in your version of Perl/Tk, and it might be worth trying using consecutive rows, and then adding additional spacing using the ipad and pad options to increase the size of the cells, if that's what you needed/were trying to do.

Alternatively, it's maybe worth looking at pack or one of the other layout managers, and seeing if they can do what you need any more reliably.

Hope that helps.

-- Foxcub
#include www.liquidfusion.org.uk

Replies are listed 'Best First'.
Re: Re: Tk Misalignment
by zby (Vicar) on Jul 03, 2003 at 08:27 UTC
    A minor note about reporting behaviour of Tk apps - you need to report about the window manager too. This was the point of my post.