diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-21 22:41:38 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-21 22:41:38 (GMT) |
commit | b60adc54d4f248d71d831d14e11cc77fe72c281e (patch) | |
tree | 40991b8eacb5eea9cfe04e7dbb2cb20149b868f2 /Lib/idlelib/percolator.py | |
parent | aacd53f6cb96fe8c4fe9ce894f22e25f356a97c3 (diff) | |
download | cpython-b60adc54d4f248d71d831d14e11cc77fe72c281e.zip cpython-b60adc54d4f248d71d831d14e11cc77fe72c281e.tar.gz cpython-b60adc54d4f248d71d831d14e11cc77fe72c281e.tar.bz2 |
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.
Diffstat (limited to 'Lib/idlelib/percolator.py')
-rw-r--r-- | Lib/idlelib/percolator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/percolator.py b/Lib/idlelib/percolator.py index 2271445..2111e03 100644 --- a/Lib/idlelib/percolator.py +++ b/Lib/idlelib/percolator.py @@ -89,10 +89,10 @@ def _percolator(parent): # htest # (pin if var2.get() else pout)(t2) text.pack() - var1 = tk.IntVar() + var1 = tk.IntVar(parent) cb1 = tk.Checkbutton(box, text="Tracer1", command=toggle1, variable=var1) cb1.pack() - var2 = tk.IntVar() + var2 = tk.IntVar(parent) cb2 = tk.Checkbutton(box, text="Tracer2", command=toggle2, variable=var2) cb2.pack() |