On Tue, 2005-10-05 at 09:49 +0200, Danny Milosavljevic wrote:
> Hi,
> 
> Am Montag, den 09.05.2005, 16:50 -0700 schrieb Brian:
> > How do you set a tooltip for the new gtk.ToolButton.   It seems that a
> > ToolButton is a subclass of a ToolItem which has a set_tip().  But how
> > do you access it from the gtk.ToolButton widget?
> 
> tooltips = gtk.Tooltips()
> [...]
> 
> toolbar = gtk.Toolbar()
> toolbar.set_tooltips(True)
> 
> toolbutton = gtk.ToolButton()
> toolbutton.set_tooltip(tooltips, "hi")
> 
> cheers,
>    Danny
> 

But that is what is driving me crazy over this:

bash-2.05b$ ./tooltip.py
Traceback (most recent call last):
  File "./tooltip.py", line 78, in ?
    tt = Tooltips()
  File "./tooltip.py", line 51, in __init__
    button1.set_tip(tooltips)
AttributeError: 'gtk.ToolButton' object has no attribute 'set_tip'


attached you will find a modified tooltips script from the pygtk
tutorial that I updated somewhat to use gtk.ToolButton's instead of
gtk.Button's.

uncomment the set_tip() lines to get the error.  I have tried every
permutation I can think of.  The new ToolButton is just borked :(

-- 
Brian <[EMAIL PROTECTED]>

Attachment: tooltip.py
Description: application/python

_______________________________________________
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