📜  标签默认文本值python代码示例

📅  最后修改于: 2022-03-11 14:45:52.441000             🧑  作者: Mango

代码示例1
try:
    from tkinter import *  # Python 3.x
except Import Error:
    from Tkinter import *  # Python 2.x

root = Tk()
e = Entry(root)
e.insert(END, 'default text')
e.pack()
root.mainloop()