python 教程 第十九章、 图形界面编程
第十九章、 图形界面编程
import Tkinter
top = Tkinter.Tk()
hello = Tkinter.Label(top, text='Hello World!')
hello.pack()
quit = Tkinter.Button(top, text='QUIT',command=top.quit)
quit.pack(fill=Tkinter.X, expand=1)
Tkinter.mainloop()
本文来自博客园,作者:方倍工作室,转载请注明原文链接:https://www.cnblogs.com/txw1958/archive/2011/10/13/2210096.html