_really_ disable GtkTreeView searching

后端 未结 1 997
暗喜
暗喜 2021-01-18 04:10

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 a

相关标签:
1条回答
  • 2021-01-18 04:37

    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.

    0 讨论(0)
提交回复
热议问题