2

I want to have a cell boundary like this:

this

But what Gtk Treeview gives me is this:

this

Is there any way I can achieve this in Gtk3 Python ?

José Fonte
  • 4,016
  • 2
  • 16
  • 28
Pawan Sharma
  • 1,842
  • 1
  • 14
  • 18

1 Answers1

2

You can use the TreeView set_grid_lines method set as both.

Example:

treeview.set_grid_lines(Gtk.TreeViewGridLines.BOTH)
José Fonte
  • 4,016
  • 2
  • 16
  • 28
  • 1
    Thanks a lot , exactly what I wanted. Never thought it would be in doucmentation of Treeview , was messing around with Cell Renderer and Cell Renderer Text's documentation – Pawan Sharma Jul 13 '17 at 14:44