Question

I am trying to change the default color (black) of the gridlines in a GTKTreeView widget. Using gtk+ 2 and latest pygtk. Any help is appreciated - I do hope this is possible.

Was it helpful?

Solution

This has been sitting a while, so I'll take a crack at it. In looking through the PyGTK documentation (which is pretty comprehensive), there does not appear to be a way to set the gridlines. You can, however, hide or show the gridlines (link), and set the even and odd line colors (link, search for "even-row-color")

Here's hoping I missed something, and there is a way to set line color. But, as far as I can tell, there is no way to do this. That may not be the case in the latest update (PyGObject 3).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top