mirror of
https://github.com/python/cpython.git
synced 2025-09-15 05:06:12 +00:00
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.
This commit is contained in:
parent
e6a1cb9700
commit
53f1a943ec
1 changed files with 8 additions and 1 deletions
|
@ -4,6 +4,7 @@ import types
|
||||||
from Tkinter import *
|
from Tkinter import *
|
||||||
from WindowList import ListedToplevel
|
from WindowList import ListedToplevel
|
||||||
from ScrolledList import ScrolledList
|
from ScrolledList import ScrolledList
|
||||||
|
import macosxSupport
|
||||||
|
|
||||||
|
|
||||||
class Idb(bdb.Bdb):
|
class Idb(bdb.Bdb):
|
||||||
|
@ -322,7 +323,13 @@ class Debugger:
|
||||||
class StackViewer(ScrolledList):
|
class StackViewer(ScrolledList):
|
||||||
|
|
||||||
def __init__(self, master, flist, gui):
|
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.flist = flist
|
||||||
self.gui = gui
|
self.gui = gui
|
||||||
self.stack = []
|
self.stack = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue