def _update_tooltip(self, *args): x = args[1] y = args[2] tooltip = args[4] ret = self.update_tooltip(x, y) if not ret or not len(ret) == 3:return False if ret[0]: tooltip.set_icon(rc.get_pixbuf(ret[0])) markup = '' if ret[1]:markup += '<b>%s</b>' % (ret[1]) if ret[1] and ret[2]:markup += '\n' if ret[2]:markup += ret[2] if markup: tooltip.set_markup(markup) elif not ret[0]:return False return True
def set_image(self, image_id, size=rc.FIXED16): self.set_from_pixbuf(rc.get_pixbuf(image_id, size))
def set_icon(self, image_id): gtk.Window.set_icon(self, rc.get_pixbuf(image_id))
def load_image(self, image_id, image_size=rc.FIXED16): return rc.get_pixbuf(image_id, image_size)