Here are some code snipits,  This code works correctly for the old
tollbar API, but the new toolbar API only shows tooltips preset in the
glade file. Not the one set dynamically


Anyone know what has to be done differently?  I know there was a bug
about that a while back, but it was supposed to be fixed.


        # setup a convienience tuple
        self.tool_widgets =
["emerge_package1","adv_emerge_package1","unmerge_package1","btn_emerge",
                     "btn_adv_emerge","btn_unmerge", "btn_sync"]
        self.widget = {}
        for x in self.tool_widgets:
            self.widget[x] = self.wtree.get_widget(x)
            if not self.widget[x]:
                dprint("MAINWINDOW: __init__(); Failure to obtain widget
'%s'" %x)
        # get an empty tooltip
        self.synctooltip = gtk.Tooltips()
        self.sync_tip = _(" Syncronise Package Database \n The last sync
was done:\n")

        self.synctooltip.set_tip(self.widget["btn_sync"], self.sync_tip
+ self.last_sync)
        self.synctooltip.enable()

-- 
Brian <[EMAIL PROTECTED]>

_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to