def glDrawStringCenter(s):
 glRasterPos2f(0, 0)
 glBitmap(0, 0, 0, 0, ((- glGetStringSize(s)[0]) / 2), 0, None)
 for c in s:
  glutBitmapCharacter(OpenGL.GLUT.GLUT_BITMAP_HELVETICA_18, ord(c))

def glDrawStringCenter ( s ) : glRasterPos2f ( 0 , 0 ) glBitmap ( 0 , 0 , 0 , 0 , ( ( - glGetStringSize ( s ) [ 0 ] ) / 2 ) , 0 , None ) for c in s : glutBitmapCharacter ( OpenGL . GLUT . GLUT_BITMAP_HELVETICA_18 , ord ( c ) )
draw string on current draw pointer position .