from gi.repository import Gtk

class Window(Gtk.Window):
    def __init__(self):
        Gtk.Window.__init__(self)

        view = Gtk.TreeView()
        self.add(view)

        column = Gtk.TreeViewColumn('Tools')
        renderer = Gtk.CellRendererText()
        renderer.set_property('editable', True)
        column.pack_start(renderer, False)
        view.append_column(column)

        renderer.connect('editing-started', self.on_view_label_cell_editing_started)

        model = Gtk.TreeStore(str)
        view.set_model(model)

        it = model.append(None, ["blah"])
        model.append(it, ["blah2"])

        self.show_all()

    def on_view_label_cell_editing_started(self, renderer, editable, path):
    	print path

window = Window()
Gtk.main()
