From a748032653aec69596257f59f27d8e1945fece9d Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sun, 10 Jul 2016 17:28:10 -0400 Subject: Refine geometry of idlelib htests (and a few other fix-ups). --- Lib/idlelib/tree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/idlelib/tree.py') diff --git a/Lib/idlelib/tree.py b/Lib/idlelib/tree.py index cb7f9ae4b41..04e0734ec3e 100644 --- a/Lib/idlelib/tree.py +++ b/Lib/idlelib/tree.py @@ -451,8 +451,8 @@ class ScrolledCanvas: def _tree_widget(parent): # htest # top = Toplevel(parent) - width, height, x, y = list(map(int, re.split('[x+]', parent.geometry()))) - top.geometry("+%d+%d"%(x+50, y+175)) + x, y = map(int, parent.geometry().split('+')[1:]) + top.geometry("+%d+%d" % (x+50, y+175)) sc = ScrolledCanvas(top, bg="white", highlightthickness=0, takefocus=1) sc.frame.pack(expand=1, fill="both", side=LEFT) item = FileTreeItem(ICONDIR) -- cgit v1.2.3