Python
学习记录
--
关于
Tkinter
Entry(
文本框
)
的选项、方法说明,以及一些示
例。
属性(
Options
)
background(bg)
borderwidth(bd)
cursor
exportselection
font
foreground(fg)
highlightbackground
highlightcolor
highlightthickness
insertbackground
insertborderwidth
insertofftime
insertontime
insertwidth
justify
relief
selectbackground
selectborderwidth
selectforeground
show
state
takefocus
textvariable
width
xscrollcommand
background(bg)
Type: color
说明:文本框的背景颜色
#
示例
from Tkinter import *
top = Tk()
text = Entry(top, background = 'red')
text.pack()