On 16/12/2010 23:04, Dieter Verfaillie wrote:
> On 16/12/2010 22:06, Gerald Britton wrote:
>> Hi Dieter,
>>
>> I just realized that your sample code displays a tooltip per row.
>> What I would like to do is display the tip per column.  So, if I'm in
>> column 3, I see "In column 3" or whatever, regardless of the row.  How
>> should I modify your sample code to do that?
> 
> Replace the on_query_tooltip() method in my previous example with the
> snippet below. Note that the "columns" variable holds a gtk.TreeViewColumn
> object.

Or if you don't need that kind of flexibility you could add a column to
your model and simply point treeview.set_tooltip_column() to it.
See
http://library.gnome.org/devel/pygtk/2.22/class-gtktreeview.html#method-gtktreeview--set-tooltip-column
on how it works.

mvg,
Dieter
_______________________________________________
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