属性(Options)
background(bg)
Type: color
说明:文本框的背景颜色
#示例
from Tkinter import *
top = Tk()
text = Entry(top, background = 'red')
text.pack()
mainloop()
borderwidth(bd)
Type: distance
说明:文本框边框宽度
#示例
text = Entry(top, borderwidth = 3)
cursor
Type: cursor
待定
exportselection
Type: flag
待定
font
Type: font
说明:文字字体。值是一个元祖,font = ('字体','字号','粗细')
#示例
text = Entry(top, font = ('Helvetica', '14', 'bold')
foreground
Type: color
说明:文字颜色。值为颜色或为颜色代码,如:'red','#ff0000'
#示例
text = Entry(top, foreground = 'red') #正确
te