[pygtk] Can't get tool tip to display
gerald.britton at gmail.com
Fri Dec 17 22:18:14 WST 2010
On Thu, Dec 16, 2010 at 5:20 PM, Dieter Verfaillie
<dieterv at optionexplicit.be> 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
> 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.
> 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.
More information about the pygtk