I was able to create a successful custom tooltip and use it in my treeview as tooltip.set_custom()

but i always get an warning message in the terminal that states:

** Message: ATK_ROLE_TOOLTIP object found, but doesn't look like a tooltip.

can someone comment on this?

my code is something like:


   ...

   self.treeview.props.has_tooltip = True
   self.treeview.connect('query-tooltip', self.query_tooltip)


   def query_tooltip(self, widget, x, y, keyboard_tip, tooltip):
self.hbox = gtk.HBox()
       label = gtk.Label('test')

       video_image = gtk.Image()
       video_image.set_from_icon_name('video-x-generic', gtk.ICON_SIZE_DND)

       self.hbox.pack_start(video_image, gtk.SHRINK)
       self.hbox.pack_start(label, gtk.SHRINK)

       self.hbox.show_all()
       tooltip.set_custom(self.hbox)

       return True

   ...

begin:vcard
fn:Bertrand Kintanar
n:Kintanar;Bertrand
email;internet:[EMAIL PROTECTED]
tel;cell:+63 915 275 4070
x-mozilla-html:TRUE
version:2.1
end:vcard

_______________________________________________
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