您的位置:首页 > 编程语言 > Python开发

python 教程 第十九章、 图形界面编程

2011-10-13 12:23 134 查看
第十九章、 图形界面编程

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()
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: