Modern opengl (core profile), the line width is limited by system.
In order to draw a free width line smooth, we draw multiple triangles to construct a thick line.
pyopengl implmentation is at github:
https://github.com/stonewell/code-snippets/tree/master/opengl%5Fthick%5Fline