mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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.
This commit is contained in:
parent
aacd53f6cb
commit
b60adc54d4
15 changed files with 92 additions and 84 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue