# -*- coding: utf-8 -*-
from gi.repository import Gtk

def get_text(column, cell, model, aiter, user_data=None):
    text = "<small>%s %s</small>" % (u"N\xe1me:", model[aiter][0])
    cell.set_property("markup", text)

w = Gtk.Window()
w.connect("delete-event", Gtk.main_quit)

model = Gtk.ListStore(str)

name = u"Tr\xf6del"
print type(name)
model.append([name])

view = Gtk.TreeView(model)
cell = Gtk.CellRendererText()
col = Gtk.TreeViewColumn("Text", cell, text=0)
col.set_cell_data_func(cell, get_text, None)
view.append_column(col)

w.add(view)

print type(model[0][0])

w.show_all()
Gtk.main()
