mirror of
https://github.com/python/cpython.git
synced 2025-10-21 06:02:21 +00:00
Only reference Tkinter._default_root when needed.
This commit is contained in:
parent
2f3667a7b9
commit
7f20263349
1 changed files with 2 additions and 3 deletions
|
@ -119,10 +119,9 @@ class _QueryDialog(Dialog):
|
|||
minvalue = None, maxvalue = None,
|
||||
parent = None):
|
||||
|
||||
from Tkinter import _default_root
|
||||
|
||||
if not parent:
|
||||
parent = _default_root
|
||||
import Tkinter
|
||||
parent = Tkinter._default_root
|
||||
|
||||
self.prompt = prompt
|
||||
self.minvalue = minvalue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue