8

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

4

1 回答 1

9

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

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该列确实会禁用搜索。

于 2010-08-26T16:28:34.503 回答