[pygtk] Tooltips for toolbuttn
Gian Mario Tagliaretti
g.tagliaretti at gmail.com
Thu Mar 30 15:52:11 WST 2006
2006/3/30, Sandro Dentella <sandro a e-den.it>:
> Why doesn't the tooltip show up in this toolbutton?
> Thanks in advance
Because you should use the set_tooltip method of gtk.Toolitem and read
better the reference manual :)
http://www.pygtk.org/pygtk2reference/class-gtktoolitem.html#method-gtktoolitem--set-tooltip
import gtk
w = gtk.Window()
w.connect("destroy", gtk.main_quit)
w.set_size_request(200, 50)
T = gtk.Toolbar()
tb = gtk.ToolButton('gtk-refresh')
tt = gtk.Tooltips()
tb.set_tooltip(tt, "tooltip...")
w.add(T)
T.add(tb)
w.show_all()
gtk.main()
ciao
--
Gian Mario Tagliaretti
PyGTK GUI programming
http://www.parafernalia.org/pygtk/
More information about the pygtk
mailing list