_really_ disable GtkTreeView searching

天涯浪子 提交于 2019-12-19 19:04:27

问题


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.


回答1:


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 

Passing -1 for the column really disables searching.



来源:https://stackoverflow.com/questions/3577224/really-disable-gtktreeview-searching

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!