[pygtk] Can't get tool tip to display
Alessandro Dentella
sandro at e-den.it
Sun Dec 5 15:52:36 WST 2010
On Sat, Dec 04, 2010 at 11:05:14PM +0100, Dieter Verfaillie wrote:
> Quoting "Gerald Britton" <gerald.britton a 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(...)
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
More information about the pygtk
mailing list