mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
py-cvs-rel2_1 (Rev 1.3)
"move "from Tkinter import *" to module level" --jhylton
This commit is contained in:
parent
bec5e5cb90
commit
48b03144ec
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,6 @@ def main():
|
||||||
def delete(self, *args):
|
def delete(self, *args):
|
||||||
print self.name, ": delete", args
|
print self.name, ": delete", args
|
||||||
apply(self.delegate.delete, args)
|
apply(self.delegate.delete, args)
|
||||||
from Tkinter import *
|
|
||||||
root = Tk()
|
root = Tk()
|
||||||
root.wm_protocol("WM_DELETE_WINDOW", root.quit)
|
root.wm_protocol("WM_DELETE_WINDOW", root.quit)
|
||||||
text = Text()
|
text = Text()
|
||||||
|
@ -82,4 +81,5 @@ def main():
|
||||||
root.mainloop()
|
root.mainloop()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
from Tkinter import *
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue