[Python-checkins] r47091 - python/trunk/Lib/idlelib/Debugger.py

ronald.oussoren python-checkins at python.org
Sun Jun 25 22:44:17 CEST 2006


Author: ronald.oussoren
Date: Sun Jun 25 22:44:16 2006
New Revision: 47091

Modified:
   python/trunk/Lib/idlelib/Debugger.py
Log:
Workaround for bug #1512124

Without this patch IDLE will get unresponsive when you open the debugger 
window on OSX. This is both using the system Tcl/Tk on Tiger as the latest
universal download from tk-components.sf.net.


Modified: python/trunk/Lib/idlelib/Debugger.py
==============================================================================
--- python/trunk/Lib/idlelib/Debugger.py	(original)
+++ python/trunk/Lib/idlelib/Debugger.py	Sun Jun 25 22:44:16 2006
@@ -4,6 +4,7 @@
 from Tkinter import *
 from WindowList import ListedToplevel
 from ScrolledList import ScrolledList
+import macosxSupport
 
 
 class Idb(bdb.Bdb):
@@ -322,7 +323,13 @@
 class StackViewer(ScrolledList):
 
     def __init__(self, master, flist, gui):
-        ScrolledList.__init__(self, master, width=80)
+        if macosxSupport.runningAsOSXApp():
+            # At least on with the stock AquaTk version on OSX 10.4 you'll
+            # get an shaking GUI that eventually kills IDLE if the width
+            # argument is specified.
+            ScrolledList.__init__(self, master)
+        else:
+            ScrolledList.__init__(self, master, width=80)
         self.flist = flist
         self.gui = gui
         self.stack = []


More information about the Python-checkins mailing list