summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/grep.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/grep.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/grep.py')
-rw-r--r--Lib/idlelib/grep.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/idlelib/grep.py b/Lib/idlelib/grep.py
index 6324b4f..f1382c9 100644
--- a/Lib/idlelib/grep.py
+++ b/Lib/idlelib/grep.py
@@ -1,6 +1,5 @@
import os
import fnmatch
-import re # for htest
import sys
from tkinter import StringVar, BooleanVar, Checkbutton # for GrepDialog
from idlelib import searchengine
@@ -134,8 +133,8 @@ def _grep_dialog(parent): # htest #
from tkinter import Toplevel, Text, Button, SEL, END
top = Toplevel(parent)
top.title("Test GrepDialog")
- 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, y + 175))
flist = PyShellFileList(top)
text = Text(top, height=5)