def _get_string_and_set_width(self, combination, mode):
        """
        Construct the string to be displayed and record the max width.
        """
        show = getattr(self, f"icon_{mode}").join(
            tuple(getattr(self, f"{x}_icon", x) for x in combination)
        )
        self.max_width = max(self.max_width, len(show))
        return show

        Construct the string to be displayed and record the max width.
        
py3status/modules/xrandr.py