#NEWLINE# def _print_at( self , text , x , y ) : #NEWLINE# #INDENT# '\n            Print string at the required location.\n\n            :param text: The text string to print.\n            :param x: The x coordinate\n            :param y: The Y coordinate\n            ' #NEWLINE# msg = '' #NEWLINE# if ( ( x != self . _x ) or ( y != self . _y ) ) : #NEWLINE# #INDENT# msg += curses . tparm ( self . _move_y_x , y , x ) . decode ( 'utf-8' ) #NEWLINE# #UNINDENT# msg += text #NEWLINE# try : #NEWLINE# #INDENT# sys . stdout . write ( msg ) #NEWLINE# #UNINDENT# except IOError : #NEWLINE# #INDENT# pass