def get_text_width(self, txt): return gtlib.gt_graphics_get_text_width(self.g, txt)
def get_text_width(self, text): return gtlib.gt_graphics_get_text_width(self.g, str(text).encode("utf-8"))