(t, value=None)
return text
From an XML element <t>, create a text box dict structure and return it.
From an XML element <t>, create a text box dict structure and return it.
From an XML element <t > create a text box dict structure and return it .
def create_text_dict(t, value=None):
    """
    From an XML element <t>, create a text box dict structure and return it.
    """
    t_width = int(float(t.attrib['width']))
    t_height = int(float(t.attrib['height']))

    text = {
        'width': t_width,
        'height': t_height,
        'value': value,
        'xmlnode': t
    }
    
    update_text_dict_pos(text, pt(int(float(t.attrib['left'])), int(float(t.attrib['top']))))
    
    return text
def create_text_dict ( t , value = None ) : t_width = int ( float ( t . attrib [ 'width' ] ) ) t_height = int ( float ( t . attrib [ 'height' ] ) ) text = { 'width' : t_width , 'height' : t_height , 'value' : value , 'xmlnode' : t } update_text_dict_pos ( text , pt ( int ( float ( t . attrib [ 'left' ] ) ) , int ( float ( t . attrib [ 'top' ] ) ) ) ) return text