summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-17 18:15:24 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-17 18:15:24 (GMT)
commitf4a942c98011ddb1f0b985c6a81178baad4e857b (patch)
treee436450f33c95edec3913cbd0545f7d4cdef0141 /Lib
parent3ee81df3bbfa6c338509ac06b585624f527511dd (diff)
downloadcpython-f4a942c98011ddb1f0b985c6a81178baad4e857b.zip
cpython-f4a942c98011ddb1f0b985c6a81178baad4e857b.tar.gz
cpython-f4a942c98011ddb1f0b985c6a81178baad4e857b.tar.bz2
Really move the imports to the top this time. :)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/tkinter/simpledialog.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/tkinter/simpledialog.py b/Lib/tkinter/simpledialog.py
index 40be5c8..7fa5d69 100644
--- a/Lib/tkinter/simpledialog.py
+++ b/Lib/tkinter/simpledialog.py
@@ -24,6 +24,9 @@ askstring -- get a string from the user
"""
from tkinter import *
+from tkinter import messagebox
+
+import tkinter # used at _QueryDialog for tkinter._default_root
class SimpleDialog:
@@ -254,7 +257,6 @@ class _QueryDialog(Dialog):
parent = None):
if not parent:
- import tkinter
parent = tkinter._default_root
self.prompt = prompt
@@ -284,9 +286,6 @@ class _QueryDialog(Dialog):
return self.entry
def validate(self):
-
- from tkinter import messagebox
-
try:
result = self.getresult()
except ValueError: