]> granicus.if.org Git - python/commitdiff
Issue #11053: Fix IDLE "Syntax Error" windows to behave as in 2.x,
authorNed Deily <nad@acm.org>
Sat, 29 Jan 2011 18:43:56 +0000 (18:43 +0000)
committerNed Deily <nad@acm.org>
Sat, 29 Jan 2011 18:43:56 +0000 (18:43 +0000)
preventing a confusing hung appearance on OS X with the windows
obscured.  (with release manager approval for 3.2rc2)

Lib/idlelib/ScriptBinding.py
Misc/NEWS

index 37b7b517c510cb5c612bdb3f84ad1f49b7c0fa9f..c42b29d55b9a78a3ec5b4f8361977380cb8eec7e 100644 (file)
@@ -190,10 +190,10 @@ class ScriptBinding:
                                   icon=tkMessageBox.QUESTION,
                                   type=tkMessageBox.OKCANCEL,
                                   default=tkMessageBox.OK,
-                                  parent=self.editwin.text)
+                                  master=self.editwin.text)
         return mb.show()
 
     def errorbox(self, title, message):
         # XXX This should really be a function of EditorWindow...
-        tkMessageBox.showerror(title, message, parent=self.editwin.text)
+        tkMessageBox.showerror(title, message, master=self.editwin.text)
         self.editwin.text.focus_set()
index 68445aba7b64fe6255d93b86cf192b39dd79e10c..c0b0bfe56c60d5f3185af00614ca4e4229d27845 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -16,6 +16,10 @@ Core and Builtins
 Library
 -------
 
+- Issue #11053: Fix IDLE "Syntax Error" windows to behave as in 2.x,
+  preventing a confusing hung appearance on OS X with the windows
+  obscured.
+
 - Issue #10940: Workaround an IDLE hang on Mac OS X 10.6 when using the
   menu accelerators for Open Module, Go to Line, and New Indent Width.
   The accelerators still work but no longer appear in the menu items.