(self)
Creates a pretty-printed string representation of the table as
        ``self.StrTable``.
Creates a pretty-printed string representation of the table as
        ``self.StrTable``.
Creates a pretty - printed string representation of the table as self . StrTable .
def _create_table(self):
        """
        Creates a pretty-printed string representation of the table as
        ``self.StrTable``.
        """
        self.StrTable = ""
        self.AttributesLength = []
        self.Lines_num = 0
        # Prepare some values..
        for col in self.Table:
            # Updates the table line count if necessary
            values = list(col.values())[0]
            self.Lines_num = max(self.Lines_num, len(values))
            # find the length of longest value in current column
            key_length = max([self._disp_width(v) for v in values] or [0])
            # and also the table header
            key_length = max(key_length, self._disp_width(list(col.keys())[0]))
            self.AttributesLength.append(key_length)
        # Do the real thing.
        self._print_head()
        self._print_value()
def _create_table ( self ) : self . StrTable = "" self . AttributesLength = [ ] self . Lines_num = 0 # Prepare some values.. for col in self . Table : # Updates the table line count if necessary values = list ( col . values ( ) ) [ 0 ] self . Lines_num = max ( self . Lines_num , len ( values ) ) # find the length of longest value in current column key_length = max ( [ self . _disp_width ( v ) for v in values ] or [ 0 ] ) # and also the table header key_length = max ( key_length , self . _disp_width ( list ( col . keys ( ) ) [ 0 ] ) ) self . AttributesLength . append ( key_length ) # Do the real thing. self . _print_head ( ) self . _print_value ( )