    def __init__(self, height, columns, options, titles=None, label=None,
                 name=None, add_scroll_bar=False, parser=None, on_change=None,
                 on_select=None, space_delimiter=' '):
        """
        :param height: The required number of input lines for this ListBox.
        :param columns: A list of widths and alignments for each column.
        :param options: The options for each row in the widget.
        :param titles: Optional list of titles for each column.  Must match the length of
            `columns`.
        :param label: An optional label for the widget.
        :param name: The name for the ListBox.
        :param add_scroll_bar: Whether to add optional scrollbar for large lists.
        :param parser: Optional parser to colour options and titles text.
        :param on_change: Optional function to call when selection changes.
        :param on_select: Optional function to call when the user actually selects an entry from
        :param space_delimiter: Optional parameter to define the delimiter between columns.
            The default value is blank space.

        The `columns` parameter is a list of integers or strings.  If it is an integer, this is
        the absolute width of the column in characters.  If it is a string, it must be of the
        format "[<align>]<width>[%]" where:

        * <align> is the alignment string ("<" = left, ">" = right, "^" = centre)
        * <width> is the width in characters
        * % is an optional qualifier that says the number is a percentage of the width of the
          widget.

        Column widths need to encompass any space required between columns, so for example, if
        your column is 5 characters, allow 6 for an extra space at the end.  It is not possible
        to do this when you have a right-justified column next to a left-justified column, so
        this widget will automatically space them for you.

        An integer value of 0 is interpreted to be use whatever space is left available after the
        rest of the columns have been calculated.  There must be only one of these columns.

        The number of columns is for this widget is determined from the number of entries in the
        `columns` parameter.  The `options` list is then a list of tuples of the form
        ([val1, val2, ... , valn], index).  For example, this data provides 2 rows for a 3 column
        widget:

            options=[(["One", "row", "here"], 1), (["Second", "row", "here"], 2)]

        The options list may be None and then can be set later using the `options` property on
        this widget.
        """
        if titles is not None and parser is not None:
            titles = [ColouredText(x, parser) for x in titles]
        super().__init__(
            height, options, titles=titles, label=label, name=name, parser=parser,
            on_change=on_change, on_select=on_select)
        self._columns = []
        self._align = []
        self._spacing = []
        self._add_scroll_bar = add_scroll_bar
        self._space_delimiter = space_delimiter
        for i, column in enumerate(columns):
            if isinstance(column, int):
                self._columns.append(column)
                self._align.append("<")
            else:
                match = re_match(r"([<>^]?)(\d+)([%]?)", column)
                self._columns.append(float(match.group(2)) / 100
                                     if match.group(3) else int(match.group(2)))
                self._align.append(match.group(1) if match.group(1) else "<")
            if space_delimiter == ' ':
                self._spacing.append(1 if i > 0 and self._align[i] == "<" and
                                     self._align[i - 1] == ">" else 0)
            else:
                self._spacing.append(1 if i > 0 else 0)
:param height: The required number of input lines for this ListBox.
:param columns: A list of widths and alignments for each column.
:param options: The options for each row in the widget.
:param titles: Optional list of titles for each column.  Must match the length of
`columns`.
:param label: An optional label for the widget.
:param name: The name for the ListBox.
:param add_scroll_bar: Whether to add optional scrollbar for large lists.
:param parser: Optional parser to colour options and titles text.
:param on_change: Optional function to call when selection changes.
:param on_select: Optional function to call when the user actually selects an entry from
:param space_delimiter: Optional parameter to define the delimiter between columns.
The default value is blank space.

The `columns` parameter is a list of integers or strings.  If it is an integer, this is
the absolute width of the column in characters.  If it is a string, it must be of the
format "[<align>]<width>[%]" where:

* <align> is the alignment string ("<" = left, ">" = right, "^" = centre)
* <width> is the width in characters
* % is an optional qualifier that says the number is a percentage of the width of the
widget.

Column widths need to encompass any space required between columns, so for example, if
your column is 5 characters, allow 6 for an extra space at the end.  It is not possible
to do this when you have a right-justified column next to a left-justified column, so
this widget will automatically space them for you.

An integer value of 0 is interpreted to be use whatever space is left available after the
rest of the columns have been calculated.  There must be only one of these columns.

The number of columns is for this widget is determined from the number of entries in the
`columns` parameter.  The `options` list is then a list of tuples of the form
([val1, val2, ... , valn], index).  For example, this data provides 2 rows for a 3 column
widget:

options=[(["One", "row", "here"], 1), (["Second", "row", "here"], 2)]

The options list may be None and then can be set later using the `options` property on
this widget.
asciimatics/widgets/multicolumnlistbox.py