From: Guido van Rossum Date: Mon, 12 Oct 1998 20:40:09 +0000 (+0000) Subject: Only reference Tkinter._default_root when needed. X-Git-Tag: v1.5.2a2~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f20263349abf23608fc87aa801a5db72125bfec;p=python Only reference Tkinter._default_root when needed. --- diff --git a/Lib/lib-tk/tkSimpleDialog.py b/Lib/lib-tk/tkSimpleDialog.py index c297922a63..1e7ed4668c 100644 --- a/Lib/lib-tk/tkSimpleDialog.py +++ b/Lib/lib-tk/tkSimpleDialog.py @@ -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