Returns the total width of all grid cols

def _get_cols_width(self):
        """Returns the total width of all grid cols"""

        tab = self.grid.current_table
        no_cols = self.grid.code_array.shape[1]
        default_col_width = self.grid.code_array.cell_attributes.\
            default_cell_attributes["column-width"]

        non_standard_col_widths = []
        __col_widths = self.grid.code_array.col_widths
        for __col, __tab in __col_widths:
            if __tab == tab:
                non_standard_col_widths.append(__col_widths[(__col, __tab)])

        cols_width = sum(non_standard_col_widths)
        cols_width += \
            (no_cols - len(non_standard_col_widths)) * default_col_width

        return cols_width