def data_w_l(text):
    """ Get widest line and number of lines of text in message box """

    lines = text.split('\n')
    longest = max(lines, key=len)
    width = len(longest)

    return width, len(lines)