Hi -- I have a treeview where I want tooltips to display upon
mouse-hover.  I need help to see what I'm missing in this section
since the tips are not popping up:  ("columns" is a simple list of
column names)

        self.view = gtk.TreeView()
        self.model = gtk.ListStore(*[str] * (len(columns) + 1))
        for index, name in enumerate(columns):
            renderer = gtk.CellRendererText()
            if index > 0:
                renderer.set_property('editable', True)
                renderer.connect('edited', self.__cell_edited,
                                                (self.model, index + 1))
            column = gtk.TreeViewColumn(name, renderer, text=index + 1)
            foo = gtk.Tooltip()
            foo.text = name
            self.view.append_column(column)
            self.view.set_tooltip_cell(foo, None, column, None)

-- 
Gerald Britton
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to