Message116906
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. |
|
Date |
User |
Action |
Args |
2010-09-20 02:25:44 | ned.deily | set | recipients:
+ ned.deily, amaury.forgeotdarc, donmez, gpolo |
2010-09-20 02:25:43 | ned.deily | set | messageid: <1284949543.82.0.527110581786.issue9899@psf.upfronthosting.co.za> |
2010-09-20 02:25:41 | ned.deily | link | issue9899 messages |
2010-09-20 02:25:40 | ned.deily | create | |
|