def text_extents(self, text): return self.ctx.text_extents(utils.scrub_to_utf8(text))
def text(self, value): if self.markup: attrlist, value, accel_char = pango.parse_markup(value) self.layout.set_attributes(attrlist) return self.layout.set_text(utils.scrub_to_utf8(value))
def text(self, value): if self.markup : attrlist, value, accel_char = pango.parse_markup(value) self.layout.set_attributes(attrlist) return self.layout.set_text(utils.scrub_to_utf8(value))
def text(self, value): return self.layout.set_text(utils.scrub_to_utf8(value))