Skip to content

Instantly share code, notes, and snippets.

View TurBoss's full-sized avatar

turboss TurBoss

  • Spain
  • 08:03 (UTC +02:00)
View GitHub Profile
#!/usr/bin/python2.7
"""Quick hack of 'modern' OpenGL example using pysdl2 and pyopengl
Based on
pysdl2 OpenGL example
http://www.arcsynthesis.org/gltut/Basics/Tut02%20Vertex%20Attributes.html
http://schi.iteye.com/blog/1969710
"""
import sys
@TurBoss
TurBoss / building_pyqt5.md
Last active September 26, 2021 11:56 — forked from KurtJacobson/building_pyqt5.md
Building PyQt5 to support Python2 based QtDesigner Plugins

Building PyQt5 to support Python3 based QtDesigner Plugins

As far as I can tell, the reason Qt5 Designer does not load custom PyQt5 widgets is due to the 'stock' shared library libpyqt5.so (which comes with PyQt5) not being built for the correct combination of the Python and Qt versions. It seems the only way to get around this is to build PyQt5 from source so we will have a libpyqt5.so that is correct and will be able to load the custom widgets.

Install Python dev tools