我試圖在一些GUI中使用iwidgets,我想讓組合框不可編輯。根據activetcl文檔,-editable
選項被稱爲組合框,但它不起作用。爲什麼可以在iwidgets(tcl/tk)中不工作?
combobox $frm_sat1.c2 \
-textvariable [itcl::scope type] \
-state normal -entries {"1 opt" "2 opt"} -editable 0;
我試圖在一些GUI中使用iwidgets,我想讓組合框不可編輯。根據activetcl文檔,-editable
選項被稱爲組合框,但它不起作用。爲什麼可以在iwidgets(tcl/tk)中不工作?
combobox $frm_sat1.c2 \
-textvariable [itcl::scope type] \
-state normal -entries {"1 opt" "2 opt"} -editable 0;
找到自己的答案。 「-state restricted」作品
試試這個
$frm_sat1.c2.lwchildsite.efchildsite.arrowBtn configure -state disabled
配置不適用於可用 – OliveOne 2010-09-13 10:31:40
究竟哪個文檔?我查看了ActiveState的文檔,看不到任何支持'-entries'選項的組合框部件。 – 2010-09-13 09:26:38
它iwidgets不tk – OliveOne 2010-09-13 10:16:02