On Thu, Dec 16, 2010 at 5:20 PM, Dieter Verfaillie <[email protected]> wrote: > 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. >
It looks like this is only for tooltips on entire rows: "If you only plan to have simple (text-only) tooltips on full rows," So, it doesn't really meet my needs, since I want the tips to be by columns, not rows. > mvg, > Dieter > -- Gerald Britton _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
