Changing the selected item colour in a GtkTreeview using python

后端 未结 5 1528
别那么骄傲
别那么骄傲 2021-01-18 07:57

I have a dialog which contains a pygtk.treeview for listing tasks by priority. Each row has the background colour set based on that priority, so for example the highest prio

5条回答
  •  野的像风
    2021-01-18 08:28

    Calling both ModifyBase and ModifyText worked for me. Calling just ModifyBase changes the text color to White

    Example in GTK C#:

    treeViewList.ModifyBase(StateType.Selected, treeViewList.Style.Base(StateType.Normal)); treeViewList.ModifyText(StateType.Selected, treeViewList.Style.Text(StateType.Normal));

提交回复
热议问题