@classmethod
    def _tbl_xml(cls, rows, cols, width):
        col_width = Emu(width/cols) if cols > 0 else Emu(0)
        return (
            '<w:tbl %s>\n'
            '  <w:tblPr>\n'
            '    <w:tblW w:type="auto" w:w="0"/>\n'
            '    <w:tblLook w:firstColumn="1" w:firstRow="1"\n'
            '               w:lastColumn="0" w:lastRow="0" w:noHBand="0"\n'
            '               w:noVBand="1" w:val="04A0"/>\n'
            '  </w:tblPr>\n'
            '%s'  # tblGrid
            '%s'  # trs
            '</w:tbl>\n'
        ) % (
            nsdecls('w'),
            cls._tblGrid_xml(cols, col_width),
            cls._trs_xml(rows, cols, col_width)
        )
dataset/ETHPy150Open python-openxml/python-docx/docx/oxml/table.py/CT_Tbl._tbl_xml/original