summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2006-06-25 20:44:16 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2006-06-25 20:44:16 (GMT)
commit53f1a943eca54f4ce1af1071998b3d56f79cc00f (patch)
treed36b4867e4863c750bedb4756f506201a10e9781 /Lib/idlelib
parente6a1cb97000a566338fd484cbb0e7aa2e95185d8 (diff)
downloadcpython-53f1a943eca54f4ce1af1071998b3d56f79cc00f.zip
cpython-53f1a943eca54f4ce1af1071998b3d56f79cc00f.tar.gz
cpython-53f1a943eca54f4ce1af1071998b3d56f79cc00f.tar.bz2
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.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/Debugger.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/Lib/idlelib/Debugger.py b/Lib/idlelib/Debugger.py
index 7a9d02f..f56460a 100644
--- a/Lib/idlelib/Debugger.py
+++ b/Lib/idlelib/Debugger.py
@@ -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 = []