summaryrefslogtreecommitdiffstats
path: root/Tools/idle
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-02-02 20:07:46 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-02-02 20:07:46 (GMT)
commit1eab0028e6cbd8d4b0012d185b8893f6e034daf2 (patch)
treec69630c61cc25742491afd8fff4669351d4d90b8 /Tools/idle
parentd6b1cf9a552c3286e3ab382889131e0541cd6c14 (diff)
downloadcpython-1eab0028e6cbd8d4b0012d185b8893f6e034daf2.zip
cpython-1eab0028e6cbd8d4b0012d185b8893f6e034daf2.tar.gz
cpython-1eab0028e6cbd8d4b0012d185b8893f6e034daf2.tar.bz2
move "from Tkinter import *" to module level
Diffstat (limited to 'Tools/idle')
-rw-r--r--Tools/idle/IOBinding.py2
-rw-r--r--Tools/idle/Percolator.py2
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()