[pygtk] Can't get tool tip to display

Gerald Britton gerald.britton at gmail.com
Mon Dec 6 05:29:11 WST 2010


On Sun, Dec 5, 2010 at 2:52 AM, Alessandro Dentella <sandro at e-den.it> wrote:
> On Sat, Dec 04, 2010 at 11:05:14PM +0100, Dieter Verfaillie wrote:
>> Quoting "Gerald Britton" <gerald.britton at gmail.com>:
>> >Say, how would I patch this code to show tips when I mouse over the
>> >column headers?  It works great for the rows underneath.
>>
>> That's a good question... Has anybody done something like that?
>
> in sqlkit i substitute the header with a gtk.Label(), at that point you can
> do:
>
>   label.et_markup(...)
>   label.set_tooltip_text(...)

very cool, might just work for me, brings up another question.  With
set_tooltip_text you don't need a handler, correct?  Yet Dieters mod
of my code introduces a handler.  Is there a way to set the tooltip
text and not use a handler?  Just seems a little inconsistent, though
I suppose there's a good reason for that or that I'm totally off the
wall!

>
> and tooltips work as expected even thought it won't show the little arrow to
> sort the column.
>
> I had to substitute the header to be able to use markup in the label and to
> have a menu  dropdown, by  I wasn't able to have the dropdown on button press
> I just have it on button release.
>
>
> sandro
> *:-)
>
> --
> Sandro Dentella  *:-)
> http://www.reteisi.org             Soluzioni libere per le scuole
> http://sqlkit.argolinux.org        SQLkit home page - PyGTK/python/sqlalchemy
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>



-- 
Gerald Britton


More information about the pygtk mailing list