def textmetrics(self, txt, width=None, height=None, **kwargs):
<EOL>txt = self.Text(txt, <NUM_LIT:0>, <NUM_LIT:0>, width, height, enableRendering=False, **kwargs)<EOL>return txt.metrics<EOL>
Returns the width and height of a string of text as a tuple
        (according to current font settings).