mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +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
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue