summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/dynoption.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/dynoption.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/dynoption.py')
-rw-r--r--Lib/idlelib/dynoption.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/dynoption.py b/Lib/idlelib/dynoption.py
index 922ad5e..962f2c3 100644
--- a/Lib/idlelib/dynoption.py
+++ b/Lib/idlelib/dynoption.py
@@ -38,8 +38,8 @@ def _dyn_option_menu(parent): # htest #
top = Toplevel(parent)
top.title("Tets dynamic option menu")
- top.geometry("200x100+%d+%d" % (parent.winfo_rootx() + 200,
- parent.winfo_rooty() + 150))
+ x, y = map(int, parent.geometry().split('+')[1:])
+ top.geometry("200x100+%d+%d" % (x + 250, y + 175))
top.focus_set()
var = StringVar(top)