diff options
| author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-07-10 17:28:10 -0400 |
|---|---|---|
| committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-07-10 17:28:10 -0400 |
| commit | a748032653aec69596257f59f27d8e1945fece9d (patch) | |
| tree | 25d06528db043b0e0039f5a1de73d60e304518cd /Lib/idlelib/calltip_w.py | |
| parent | cd5e388c39563c7bd1122ec3360fd5ed60952668 (diff) | |
| download | cpython-git-a748032653aec69596257f59f27d8e1945fece9d.tar.gz | |
Refine geometry of idlelib htests (and a few other fix-ups).
Diffstat (limited to 'Lib/idlelib/calltip_w.py')
| -rw-r--r-- | Lib/idlelib/calltip_w.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/calltip_w.py b/Lib/idlelib/calltip_w.py index 9f6cdc1771..b3c3e5e284 100644 --- a/Lib/idlelib/calltip_w.py +++ b/Lib/idlelib/calltip_w.py @@ -138,8 +138,8 @@ def _calltip_window(parent): # htest # top = Toplevel(parent) top.title("Test calltips") - 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)) text = Text(top) text.pack(side=LEFT, fill=BOTH, expand=1) text.insert("insert", "string.split") |
