All pastes #118037 Raw Edit

Mine

public text v1 · immutable
·published 2006-08-06 05:32 UTC
rendered paste body
    def __set_tooltip (self):
        if not globalvar.applier:
            return

        try:
            schema = globalvar.applier.get_schema ("/schemas" + self.key)
            if schema:
                globalvar.tooltips.set_tip (self.checkbutton,
                                            " ".join (schema.get_long_desc ().split ()))
        except gobject.GError:
            print >> sys.stderr, "Warning: Could not get schema for %s" % self.key