[pygtk] gtk.ComboBox() and gtk.Tooltips()

Marcus Habermehl bmh1980de at yahoo.de
Sun Aug 5 00:21:14 WST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

B C schrieb:
> --- Marcus Habermehl <bmh1980de at yahoo.de> wrote:
> 
> Hi.
> 
> How do I set a tooltip for a gtk.ComboBox()?
> 
> self.tooltips1.set_tip(self.combobox2, "My tooltip")
> 
> doesn't return an error. But the ComboBox doesn't shows the tooltip.
> 
> And I haven't found a description in the PyGTK FAQ.
> 

>>

> Try putting the ComboBox inside an EventBox and setting the tip on the
> EventBox, i.e.
> ebox = gtk.EventBox()
> ebox.add(combobox)
> tips.set_tip(ebox, 'whatever')

Ah, yes!

That was the solution. Many thanks! :-)

Greetings
Marcus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGtKd66QtJuHAzSHYRAm0cAKCGvry6lJaMO8Si2wq0fa2s66o2XACgtS4l
dHjQ5bm1kRTg90mSagwD1e4=
=hzu3
-----END PGP SIGNATURE-----


More information about the pygtk mailing list