From 7f20263349abf23608fc87aa801a5db72125bfec Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 12 Oct 1998 20:40:09 +0000 Subject: Only reference Tkinter._default_root when needed. --- Lib/lib-tk/tkSimpleDialog.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Lib/lib-tk/tkSimpleDialog.py b/Lib/lib-tk/tkSimpleDialog.py index c297922..1e7ed46 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 -- cgit v0.12