Ned Deily <n...@acm.org> added the comment:

r84865 for Issue1730136 introduced a new tkinter test, test_font.  As it 
stands, the test fails on OS X 10.6 when Python is built with Aqua Tk, at least 
with either the Apple-supplied 8.5 or the ActiveState 8.5 (I haven't tried with 
any of the Aqua 8.4 version).  The main problem is that font "system" is not a 
font name returned by the interface used by tkinter/font.py:

$ /usr/bin/wish8.5
% font names
systemPushButtonFont systemMenuItemFont systemApplicationFont systemSystemFont 
systemMenuItemMarkFont TkMenuFont TkDefaultFont systemSmallEmphasizedSystemFont 
systemDetailEmphasizedSystemFont systemMiniSystemFont TkHeadingFont 
TkTooltipFont systemUtilityWindowTitleFont systemViewsFont 
systemSmallSystemFont systemMenuTitleFont systemEmphasizedSystemFont TkTextFont 
systemDetailSystemFont TkCaptionFont systemLabelFont systemAlertHeaderFont 
systemMenuItemCmdKeyFont TkSmallCaptionFont TkFixedFont systemWindowTitleFont 
systemToolbarFont TkIconFont
% font actual system
-family {Lucida Grande} -size 13 -weight normal -slant roman -underline 0 
-overstrike 0

Based on the man page here (http://www.tcl.tk/man/tcl8.5/TkCmd/font.htm#M31) it 
appears any of the "standard" font names would be a better choice, like 
TkDefaultFont.

Also, test_font should include the standard tkinter.test setUp and setDown 
functions so that the test can be run by itself.

The attached patch should fix both issues.

----------
components: +Tkinter
keywords: +patch
nosy: +amaury.forgeotdarc, gpolo, ned.deily
stage:  -> patch review
title: [REGRESSION] test_tk broken on MacOSX 10.6 -> tkinter test_font fails on 
OS X with Aqua Tk
Added file: http://bugs.python.org/file18934/issue9899-py3k.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9899>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to