parameters: (self, context, table)
return_statement: return table_layouts
docstring: Return the Table Cells Layouts
docstring_summary: Return the Table Cells Layouts
docstring_tokens: Return the Table Cells Layouts
function: def get_table_layouts(self, context, table):
          """Return the Table Cells Layouts"""
          table_layouts = []
          for i, table_row in enumerate(table['matrix']):
              table_layouts.append([])
              for j, cell_text in enumerate(table_row):
                  layout = context.create_pango_layout()
                  layout.set_font_description(self.pango_font)
                  cell_text = cgi.escape(cell_text)
                  if i == 0: cell_text = "<b>" + cell_text + "</b>"
                  layout.set_width(int(table['col_max']*pango.SCALE))
                  layout.set_wrap(pango.WRAP_WORD_CHAR)
                  layout.set_markup(cell_text)
                  table_layouts[i].append(layout)
          return table_layouts
function_tokens: def get_table_layouts ( self , context , table ) : table_layouts = [ ] for i , table_row in enumerate ( table [ 'matrix' ] ) : table_layouts . append ( [ ] ) for j , cell_text in enumerate ( table_row ) : layout = context . create_pango_layout ( ) layout . set_font_description ( self . pango_font ) cell_text = cgi . escape ( cell_text ) if i == 0 : cell_text = "<b>" + cell_text + "</b>" layout . set_width ( int ( table [ 'col_max' ] * pango . SCALE ) ) layout . set_wrap ( pango . WRAP_WORD_CHAR ) layout . set_markup ( cell_text ) table_layouts [ i ] . append ( layout ) return table_layouts