#NEWLINE# def centre( self , text , y , colour = 7 , attr = 0 , colour_map = None ) : #NEWLINE# #INDENT# '\n        Centre the text on the specified line (y) using the optional\n        colour and attributes.\n\n        :param text: The (single line) text to be printed.\n        :param y: The line (y coord) for the start of the text.\n        :param colour: The colour of the text to be displayed.\n        :param attr: The cell attribute of the text to be displayed.\n        :param colour_map: Colour/attribute list for multi-colour text.\n\n        The colours and attributes are the COLOUR_xxx and A_yyy constants\n        defined in the Screen class.\n        ' #NEWLINE# x = ( ( self . width - len ( text ) ) // 2 ) #NEWLINE# self . paint ( text , x , y , colour , attr , colour_map = self )