diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-07-10 21:28:10 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-07-10 21:28:10 (GMT) |
commit | a748032653aec69596257f59f27d8e1945fece9d (patch) | |
tree | 25d06528db043b0e0039f5a1de73d60e304518cd /Lib/idlelib/percolator.py | |
parent | cd5e388c39563c7bd1122ec3360fd5ed60952668 (diff) | |
download | cpython-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.py | 5 |
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 |