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