Issue 1693258: Fix for duplicate "preferences" menu-OS X (original) (raw)

Version 8.4.14 of Tcl/Tk Aqua (for OS X) hard-codes a "Preferences" item in the Apple menu. As a result, IDLE now has two "Preferences" items--the active one that is coded by default, and an inactive item that is hard-coded by Tk.

The attached patch to macosxSupport.py checks the installed version of Tk, and if it is 8.4.14, substitutes the hard-coded Tk "preferences" menu and binds IDLE's "preferences" dialog to this menu item. If Tk is version 8.4.13 or less, leave the menu alone.

This patch addresses Python bug #1691411 opened at 2007-03-30.