Tkinter 学习

from Tkinter import *

root = Tk()

mylabel = Label(root, text = "I am a label widget")

mybutton = Button(root,text = "I am a button" )

mylabel.pack()

mybutton.pack()

root.mainloop()

 

原文地址:https://www.cnblogs.com/ifconfig/p/4504286.html