#!/usr/bin/env python

from gi.repository import Gtk
from gi.repository import Pango

win = Gtk.Window()
sv = Gtk.ScrolledWindow(visible=True)
win.add(sv)

tv = Gtk.TreeView(visible=True)
sv.add(tv)

model = Gtk.ListStore(str)
tv.set_model(model)

column = Gtk.TreeViewColumn()
tv.append_column(column)

cell = Gtk.CellRendererText()
column.pack_start(cell, True)
column.add_attribute(cell, 'markup', 0)

font = Pango.FontDescription.from_string('Monospace 11')
cell.props.font_desc = font

for i in range(100):
    iter = model.append()
    model.set(iter, 0, '<b>bold</b> not bold <b>bold</b>')

win.present()
win.connect('delete-event', lambda *_: Gtk.main_quit())
Gtk.main()
