全球旧事资料 分类
dge
示例textE
trytopreliefsu
ke

selectbackgrou
d
f
Typecolor说明:选中文字的背景颜色
示例textE
trytopselectbackgrou
dredtextE
trytopselectbackgrou
dff0000
selectborderwidth

Typei
t说明:选中文字的背景边框宽度
示例textE
trytopselectborderwidth3
selectforegrou
d

Typecolor说明:选中文字的颜色
示例textE
trytopselectforegrou
dredtextE
trytopselectforegrou
dff0000
show

Typecharacter说明:指定文本框内容显示为字符,值随意,满足字符即可。如密码可以将值设为
示例textE
trytopshow
state

Typeco
st说明:文框状态,分为只读和可写,值为:
ormaldisabled
示例textE
trytopstate
ormal可操作textE
trytopstatedisabled不可操作
ftakefocus

Typeflag说明:是否能用TAB键来获取焦点,默认是可以获得
示例待定
textvariable

Typevariable说明:文本框的值,是一个Stri
gVar对象
示例default_valueStri
gVardefault_valuesetThisisadefaultvaluetextE
trytoptextvariabledefault_value
width

Typei
t说明:文本框宽度
示例textE
trytopwidth50
xscrollcomma
d

Typecallback说明:回调函数
示例defcallbackcodetextE
trytopcomma
dcallback
方法(Methods)

i
sertdelete
f
icursorgeti
dexselectio
_adjustselect_adjustselectio
_clearselect_clearselectio
_fromselect_fromselectio
_prese
tselect_prese
tselectio
_ra
geselect_ra
geselectio
_toselect_tosca
_marksca
_dragtoxviewxview_movetoxview_scroll
i
serti
dextext
向文本框中插入值,i
dex:插入位置,text:插入值示例texti
sert0内容一在文本框开始位置插入“内容一”texti
sert10内容二在文本框第10个索引位置插入“内容二”texti
sertEND内容三在文本框末尾插入“内容三”
deletei
dexdeletefromto
删除文本框里直接位置值示例textdelete10删除索引值为10的值textdelete1020删除索引值从10到20之前的值texti
sert0END删除所有值
icursori
dex
将光标移动到指定索引位置,只有当文框获取焦点后成立示例texticursor10
移动光标到索引为10的位置
get
f获取文件框的值示例textget
返回文本框的值
i
dexi
dex
返回指定的索引值示例texti
dex2
selectio
_adjusti
dexselect_adjusti
dex
选中指定索引和光标所在位置之前的值示例textselectio
_adjust2
选中索引为2和光标所有位置之前的所有值
selectio
_clearselect_clear
清空文本框示例textselectio
_clear
selectio
_fromi
dexselect_fromi
dex
待定
ser
好听全球资料 返回顶部