]> granicus.if.org Git - python/commitdiff
Workaround for bug #1512124
authorRonald Oussoren <ronaldoussoren@mac.com>
Sun, 25 Jun 2006 20:44:16 +0000 (20:44 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Sun, 25 Jun 2006 20:44:16 +0000 (20:44 +0000)
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.

Lib/idlelib/Debugger.py

index 7a9d02f6b205bb158ad5144aabe8c423691d6821..f56460aad0964b24936a60e7ebaeaeb6cab4fb65 100644 (file)
@@ -4,6 +4,7 @@ import types
 from Tkinter import *
 from WindowList import ListedToplevel
 from ScrolledList import ScrolledList
+import macosxSupport
 
 
 class Idb(bdb.Bdb):
@@ -322,7 +323,13 @@ class Debugger:
 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 = []