mirror of https://github.com/python/cpython
move "from Tkinter import *" to module level
This commit is contained in:
parent
d6b1cf9a55
commit
1eab0028e6
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue