From 1eab0028e6cbd8d4b0012d185b8893f6e034daf2 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Fri, 2 Feb 2001 20:07:46 +0000 Subject: [PATCH] move "from Tkinter import *" to module level --- Tools/idle/IOBinding.py | 2 +- Tools/idle/Percolator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/idle/IOBinding.py b/Tools/idle/IOBinding.py index 7d8f0a9e50b..5d41d3592e4 100644 --- a/Tools/idle/IOBinding.py +++ b/Tools/idle/IOBinding.py @@ -200,7 +200,6 @@ class IOBinding: def test(): - from Tkinter import * root = Tk() class MyEditWin: def __init__(self, text): @@ -229,4 +228,5 @@ def test(): root.mainloop() if __name__ == "__main__": + from Tkinter import * test() diff --git a/Tools/idle/Percolator.py b/Tools/idle/Percolator.py index 9def5f4bcee..5682111137b 100644 --- a/Tools/idle/Percolator.py +++ b/Tools/idle/Percolator.py @@ -63,7 +63,6 @@ def main(): def delete(self, *args): print self.name, ": delete", args apply(self.delegate.delete, args) - from Tkinter import * root = Tk() root.wm_protocol("WM_DELETE_WINDOW", root.quit) text = Text() @@ -82,4 +81,5 @@ def main(): root.mainloop() if __name__ == "__main__": + from Tkinter import * main()