In article 
<CAFBvUat=jagwrprr7xxfkph2tshvnpwfxuhidt8b06xxgak...@mail.gmail.com>,
 Josef Eschgfaeller <e...@unife.it> wrote:
> Trying to pass from Python 3.1 to 3.3 I have
> a problem with Tkinter: fonts (or spacings)
> in 3.3 seem to be higher, so that after
> instructions like
> 
>     A=tkinter.Text(B,width=36,height=27,...)
> 
> the text widget requires more space than
> before with 3.1. I have Mac OS X 10.6.8 and
> call Python from a script using
> 
>     #! /Library/Frameworks/Python.framework\
>                 /Versions/3.x/bin/python3
> 
> It seems also that the letters are a bit uglier,
> somewhat more compressed.

Chances are that the difference is not in Python itself but in the 
versions of Tk that the two Pythons are linked with.  I wouldn't be 
surprised to find that the 3.1 version is linked with Tk 8.4 and 3.3 is 
with Tk 8.5.  One way to check is:

$ otool -L $(python3.3 -c 'import _tkinter;print(_tkinter.__file__)')
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/lib-dynlo
ad/_tkinter.so:
   /Library/Frameworks/Tcl.framework/Versions/8.5/Tcl (compatibility 
version 8.5.0, current version 8.5.15)
   /Library/Frameworks/Tk.framework/Versions/8.5/Tk (compatibility 
version 8.5.0, current version 8.5.15)
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 125.2.0)

If you are using the python.org 3.3, please be sure to follow the README 
instructions to install a new version of Tcl/Tk 8.5 (like the ActiveTcl 
one); the Apple-supplied system Tcl/Tk 8.5 in OS X 10.6 was new and very 
buggy.

-- 
 Ned Deily,
 n...@acm.org

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to