From: Ronald Oussoren Date: Tue, 26 May 2009 18:41:00 +0000 (+0000) Subject: Fix for Issue6111. X-Git-Tag: v3.1rc1~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=220a9fbde44bb4d3d302a6ef8e1133b5209ec9f9;p=thirdparty%2FPython%2Fcpython.git Fix for Issue6111. --- diff --git a/Lib/idlelib/macosxSupport.py b/Lib/idlelib/macosxSupport.py index e759157444a7..b23221e759a7 100644 --- a/Lib/idlelib/macosxSupport.py +++ b/Lib/idlelib/macosxSupport.py @@ -82,6 +82,12 @@ def overrideRootMenu(root, flist): def config_dialog(event=None): from idlelib import configDialog + + # Ensure that the root object has an instance_dict attribute, + # mirrors code in EditorWindow (although that sets the attribute + # on an EditorWindow instance that is then passed as the first + # argument to ConfigDialog) + root.instance_dict = flist.inversedict configDialog.ConfigDialog(root, 'Settings')