[Python-checkins] r63414 - python/trunk/Lib/tkinter/simpledialog.py

georg.brandl python-checkins at python.org
Sat May 17 20:15:24 CEST 2008


Author: georg.brandl
Date: Sat May 17 20:15:24 2008
New Revision: 63414

Log:
Really move the imports to the top this time. :)


Modified:
   python/trunk/Lib/tkinter/simpledialog.py

Modified: python/trunk/Lib/tkinter/simpledialog.py
==============================================================================
--- python/trunk/Lib/tkinter/simpledialog.py	(original)
+++ python/trunk/Lib/tkinter/simpledialog.py	Sat May 17 20:15:24 2008
@@ -24,6 +24,9 @@
 """
 
 from tkinter import *
+from tkinter import messagebox
+
+import tkinter # used at _QueryDialog for tkinter._default_root
 
 class SimpleDialog:
 
@@ -254,7 +257,6 @@
                  parent = None):
 
         if not parent:
-            import tkinter
             parent = tkinter._default_root
 
         self.prompt   = prompt
@@ -284,9 +286,6 @@
         return self.entry
 
     def validate(self):
-
-        from tkinter import messagebox
-
         try:
             result = self.getresult()
         except ValueError:


More information about the Python-checkins mailing list