diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py index 07b04f3bcf2..4875d111a77 100644 --- a/Lib/idlelib/IOBinding.py +++ b/Lib/idlelib/IOBinding.py @@ -222,7 +222,6 @@ def asksavefile(self): def test(): - from Tkinter import * root = Tk() class MyEditWin: def __init__(self, text): @@ -251,4 +250,5 @@ def save_a_copy(self, event): root.mainloop() if __name__ == "__main__": + from Tkinter import * test()