def codebox ( msg = "" , title = " " , text = "" ) : return tb . textbox ( msg , title , text , codebox = 1 )
tkmessagebox use in python syntax
Display some text in a monospaced font with no line wrapping . This function is suitable for displaying code and text that is formatted using spaces .
def codebox(msg="", title=" ", text=""):
    """
    Display some text in a monospaced font, with no line wrapping.
    This function is suitable for displaying code and text that is
    formatted using spaces.

    The text parameter should be a string, or a list or tuple of lines to be
    displayed in the textbox.

    :param str msg: the msg to be displayed
    :param str title: the window title
    :param str text: what to display in the textbox
    """
    return tb.textbox(msg, title, text, codebox=1)