[pygtk] eventbox and ugly look

Alessandro Dentella sandro at e-den.it
Thu Sep 2 14:49:01 WST 2010

On Wed, Sep 01, 2010 at 01:55:54PM +0200, Neil Muller wrote:
> On 31 August 2010 18:56, Alessandro Dentella <sandro a e-den.it> wrote:
> > Hi,
> >
> > in order to get tooltips in the header of a TreViewColumn I add a Label to
> > en EventBox. It works but upgrading from Ubuntu 8.04 to 10.04 (pygtk 2.17) I
> > realized that very ugly border appear (that where not present previously)
> > as in the attached example.
> >
> > Does anybody know how to fix the look or to get tooltip in the header of
> > the column w/o event box?
> You should be able to just set the tooltip directly on the label,
> using set_tooltip_text and set_has_tooltip, without needing the
> EventBox.

you are right. I was already using set_tooltip_markup but I didn't realize
it worked for label as well. Thanks to you and john for the answer.


More information about the pygtk mailing list