    def required_height(self, offset, width):
        """
        Calculate the minimum required height for this widget.

        :param offset: The allowed width for any labels.
        :param width: The total width of the widget, including labels.
        """
Calculate the minimum required height for this widget.

:param offset: The allowed width for any labels.
:param width: The total width of the widget, including labels.
asciimatics/widgets/widget.py