    def __init__(self, text, on_click, label=None, add_box=True, name=None, **kwargs):
        """
        :param text: The text for the button.
        :param on_click: The function to invoke when the button is clicked.
        :param label: An optional label for the widget.
        :param add_box: Whether to wrap the text with chevrons.
        :param name: The name of this widget.

        Also see the common keyword arguments in :py:obj:`.Widget`.
        """
        super().__init__(name, **kwargs)
        self._add_box = add_box
        self.text = text
        self._on_click = on_click
        self._label = label
:param text: The text for the button.
:param on_click: The function to invoke when the button is clicked.
:param label: An optional label for the widget.
:param add_box: Whether to wrap the text with chevrons.
:param name: The name of this widget.

Also see the common keyword arguments in :py:obj:`.Widget`.
asciimatics/widgets/button.py