From 220a9fbde44bb4d3d302a6ef8e1133b5209ec9f9 Mon Sep 17 00:00:00 2001 From: Ronald Oussoren Date: Tue, 26 May 2009 18:41:00 +0000 Subject: [PATCH] Fix for Issue6111. --- Lib/idlelib/macosxSupport.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Lib/idlelib/macosxSupport.py b/Lib/idlelib/macosxSupport.py index e759157444a..b23221e759a 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')