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/lanzhi/p/6468795.html