summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/stackviewer.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/stackviewer.py')
-rw-r--r--Lib/idlelib/stackviewer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/stackviewer.py b/Lib/idlelib/stackviewer.py
index b3b99bc..657f0a9 100644
--- a/Lib/idlelib/stackviewer.py
+++ b/Lib/idlelib/stackviewer.py
@@ -120,11 +120,11 @@ class VariablesTreeItem(ObjectTreeItem):
sublist.append(item)
return sublist
-def _stack_viewer(parent):
+def _stack_viewer(parent): # htest #
top = tk.Toplevel(parent)
top.title("Test StackViewer")
- width, height, x, y = list(map(int, re.split('[x+]', parent.geometry())))
- top.geometry("+%d+%d"%(x, y + 150))
+ x, y = map(int, parent.geometry().split('+')[1:])
+ top.geometry("+%d+%d" % (x + 50, y + 175))
flist = PyShellFileList(top)
try: # to obtain a traceback object
intentional_name_error