]> granicus.if.org Git - python/commitdiff
Only reference Tkinter._default_root when needed.
authorGuido van Rossum <guido@python.org>
Mon, 12 Oct 1998 20:40:09 +0000 (20:40 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 12 Oct 1998 20:40:09 +0000 (20:40 +0000)
Lib/lib-tk/tkSimpleDialog.py

index c297922a635d37d0776abd50ac3aad6315d21d0d..1e7ed4668cd516dfd7c3fd4324dc3cee62414486 100644 (file)
@@ -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