from gi.repository import Gtk


def _destroy_cb(widget, data=None):
    Gtk.main_quit()

window = Gtk.Window()
window.connect("destroy", _destroy_cb)

tree = Gtk.TreeView()
cell = Gtk.CellRendererToggle()

tree.insert_column_with_attributes(0, 'Test', cell)


window.show_all()
Gtk.main()
