为什么 -editable 在 iwidgets (tcl/tk) 中不起作用?

发布于 2024-09-19 02:22:53 字数 247 浏览 2 评论 0原文

我试图在一些 GUI 中使用 iwidgets,并且我想让组合框不可编辑。根据 activetcl 文档,组合框提到了 -editable 选项,但它不起作用。

combobox $frm_sat1.c2 \
    -textvariable [itcl::scope type] \
    -state normal -entries {"1 opt" "2 opt"} -editable 0;

I was trying to use iwidgets in some GUI and I want to make combobox non-editable. As per activetcl documentation, the -editable option is mentioned for combobox and yet it is not working.

combobox $frm_sat1.c2 \
    -textvariable [itcl::scope type] \
    -state normal -entries {"1 opt" "2 opt"} -editable 0;

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

郁金香雨 2024-09-26 02:22:53

试试这个

$frm_sat1.c2.lwchildsite.efchildsite.arrowBtn configure -state disabled

try this

$frm_sat1.c2.lwchildsite.efchildsite.arrowBtn configure -state disabled
z祗昰~ 2024-09-26 02:22:53

我自己找到了答案。
“-国家限制”作品

Found the answer myself.
"-state restricted" works

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文