Tkinter Label alignment problem using OS 10.6

AJ ajuffali at yahoo.com
Sat Jul 31 14:54:38 EDT 2010


On Jul 31, 12:55 am, Peter Otten <__pete... at web.de> wrote:
> AJ wrote:
> > I have written a sample program that ran correctly with earlier than
> > Mac OS 10.6. The answer field Label does not align correctly. I
> > downloaded the latest Python 2.7 release but still did not solve the
> > problem.  Look for line "L4.place(relx=0.32,rely=0.56, anchor=W)"
>
> The underlying Tcl/Tk is more likely to be the cause of your problem, so
> you'd have to look at that.
>
> I'm on Linux with Python2.6 and Tcl/Tk 8.5, and don't see a misalignment.
>
> Stab in the dark: try creating L4 with explicit padding:
>
> L4 = Label(..., padx=0)
>
> Peter
>
> PS: Rantingrick is right; you should use one of the other geometry managers

Thank you Peter. I’ve tried the padding but it does not solve the
issue.  It only does it with Mac OS 10.6. it works fine with Windows
and Linux and earlier Mac OS than 10.6.
To write professional GUI one needs to have full control over the
placement of the Widgets. Some programmers have switched to wxPython
because of this issue and I am trying not to.



More information about the Python-list mailing list