mirror of
https://github.com/python/cpython.git
synced 2025-10-22 06:32:43 +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,
|
minvalue = None, maxvalue = None,
|
||||||
parent = None):
|
parent = None):
|
||||||
|
|
||||||
from Tkinter import _default_root
|
|
||||||
|
|
||||||
if not parent:
|
if not parent:
|
||||||
parent = _default_root
|
import Tkinter
|
||||||
|
parent = Tkinter._default_root
|
||||||
|
|
||||||
self.prompt = prompt
|
self.prompt = prompt
|
||||||
self.minvalue = minvalue
|
self.minvalue = minvalue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue