summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/percolator.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-07-10 21:28:10 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2016-07-10 21:28:10 (GMT)
commita748032653aec69596257f59f27d8e1945fece9d (patch)
tree25d06528db043b0e0039f5a1de73d60e304518cd /Lib/idlelib/percolator.py
parentcd5e388c39563c7bd1122ec3360fd5ed60952668 (diff)
downloadcpython-a748032653aec69596257f59f27d8e1945fece9d.zip
cpython-a748032653aec69596257f59f27d8e1945fece9d.tar.gz
cpython-a748032653aec69596257f59f27d8e1945fece9d.tar.bz2
Refine geometry of idlelib htests (and a few other fix-ups).
Diffstat (limited to 'Lib/idlelib/percolator.py')
-rw-r--r--Lib/idlelib/percolator.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/idlelib/percolator.py b/Lib/idlelib/percolator.py
index 2111e03..4474f9a 100644
--- a/Lib/idlelib/percolator.py
+++ b/Lib/idlelib/percolator.py
@@ -57,7 +57,6 @@ class Percolator:
def _percolator(parent): # htest #
import tkinter as tk
- import re
class Tracer(Delegator):
def __init__(self, name):
@@ -74,8 +73,8 @@ def _percolator(parent): # htest #
box = tk.Toplevel(parent)
box.title("Test Percolator")
- width, height, x, y = list(map(int, re.split('[x+]', parent.geometry())))
- box.geometry("+%d+%d" % (x, y + 150))
+ x, y = map(int, parent.geometry().split('+')[1:])
+ box.geometry("+%d+%d" % (x, y + 175))
text = tk.Text(box)
p = Percolator(text)
pin = p.insertfilter