#!/usr/bin/env python
from gi.repository import Gtk
tree_view = Gtk.TreeView()
tree_view.set_headers_visible(False)
store = Gtk.ListStore(str, int)
store.append(("abc", 0))
store.append(("def", 0))
store.append(("ghi", 0))
tree_view.set_model(store)
renderer = Gtk.CellRendererText()
column = Gtk.TreeViewColumn("", renderer, text=0)
tree_view.append_column(column)
renderer = Gtk.CellRendererText()
column = Gtk.TreeViewColumn("", renderer, text=1)
tree_view.append_column(column)
def set_number(column, renderer, store, itr, data):
    path = store.get_path(itr)
    renderer.props.text = str(path)
column.set_cell_data_func(renderer, set_number, None)
window = Gtk.Window()
window.connect("delete-event", Gtk.main_quit)
window.set_position(Gtk.WindowPosition.CENTER)
window.set_default_size(200, 100)
window.add(tree_view)
window.show_all()
Gtk.main()
