On 5/21/07, Don Hopkins <[EMAIL PROTECTED]> wrote:
I'm trying to set the tooltip of a tool item, which I though would be
easy, but the ToolItem.set_tooltip takes a first parameter that's a
mysterious GtkTooltips object.
But I can't figure out how to get a reference to the required ToolTips
object to pass as a first argument to a ToolItem's set_tooltip(tooltips,
tool_tip_string) ...
The obvious looking method GtkToolbar.get_tooltips() actually returns a
boolean that tells if the toolbar is using tooltips, but does not return
the toolbar's "GtkTooltips *tooltips" member, which is declared public
but apparently not exposed as a property to Python.

Did you try the FAQ [1]?
"How do I add tooltips to a ToolButton in a Toolbar?"
  1   tooltips = gtk.Tooltips()
  2   [...]
  3
  4   toolbar = gtk.Toolbar()
  5   toolbar.set_tooltips(True)
  6   [...]
  7
  8   toolbutton = gtk.ToolButton()
  9   toolbutton.set_tooltip(tooltips, "hi")

[1] 
http://live.gnome.org/PyGTK/FAQ/Buttons#head-f960416c2d8b0eb9ad1c56a83d9efeadc649d811


--
Lauro ("lmoura" on Freenode)
http://lauro.wordpress.com
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to