第十九章、 图形界面编程
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()
2023-10-15 16:48:34
第十九章、 图形界面编程
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()