diff options
-rw-r--r-- | Tools/idle/IOBinding.py | 2 | ||||
-rw-r--r-- | 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 7d8f0a9..5d41d35 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 9def5f4..5682111 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() |