def METHOD_NAME(self):
    if self.interface.headings:
        headings = self.interface.headings
        self.native_tree.set_headers_visible(True)
    else:
        headings = self.interface.accessors
        self.native_tree.set_headers_visible(False)
    for i, heading in enumerate(headings):
        column = Gtk.TreeViewColumn(heading)
        column.set_sizing(Gtk.TreeViewColumnSizing.AUTOSIZE)
        column.set_expand(True)
        column.set_resizable(True)
        column.set_min_width(16)
        icon = Gtk.CellRendererPixbuf()
        column.pack_start(icon, False)
        column.add_attribute(icon, "pixbuf", i * 2 + 1)
        value = Gtk.CellRendererText()
        column.pack_start(value, True)
        column.add_attribute(value, "text", i * 2 + 2)
        self.native_tree.append_column(column)