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/grep.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/grep.py')
-rw-r--r-- | Lib/idlelib/grep.py | 5 |
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) |