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() 
posted @ 2011-10-13 12:23  方倍工作室  阅读(329)  评论(0编辑  收藏  举报