From b60adc54d4f248d71d831d14e11cc77fe72c281e Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Tue, 21 Jun 2016 18:41:38 -0400 Subject: Issue #24137: Run IDLE, test_idle, and htest with tkinter default root disabled. Fix code and tests that fail with this restriction. Fix htests to not create a second and redundant root and mainloop. --- Lib/idlelib/dynoption.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/idlelib/dynoption.py') diff --git a/Lib/idlelib/dynoption.py b/Lib/idlelib/dynoption.py index 515b4bafc2c..922ad5e4afb 100644 --- a/Lib/idlelib/dynoption.py +++ b/Lib/idlelib/dynoption.py @@ -34,9 +34,9 @@ class DynOptionMenu(OptionMenu): self.variable.set(value) def _dyn_option_menu(parent): # htest # - from tkinter import Toplevel + from tkinter import Toplevel # + StringVar, Button - top = Toplevel() + top = Toplevel(parent) top.title("Tets dynamic option menu") top.geometry("200x100+%d+%d" % (parent.winfo_rootx() + 200, parent.winfo_rooty() + 150)) -- cgit v1.2.3