_really_禁用GtkTreeView搜索 [英] _really_ disable GtkTreeView searching

查看:168
本文介绍了_really_禁用GtkTreeView搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能真正禁用gtk treeview交互式搜索? 文档 set_enable_search(False) ,但如果我这样做, CTRL + F 仍然会导致出现恼人的搜索弹出窗口。连接到 start-interactive-search 并返回 True 也不起作用。

How do I really disable gtk treeview interactive search? The docs say to set_enable_search(False), but if I do this, CTRL+F still causes an annoying search pop-up to appear. Connecting to start-interactive-search and returning True doesn't work either.

推荐答案

pygtk文档没有说明这一点,但 C docs do:

The pygtk docs don't state this, but the C docs do:

gtk_tree_view_set_search_column (GtkTreeView *tree_view, gint column)

column :
    the column of the model to search in, or -1 to disable searching 

传递列 -1 确实会禁用搜索。

Passing -1 for the column really disables searching.

这篇关于_really_禁用GtkTreeView搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆