commontk / PythonQt

CMake-ified version of PythonQt
https://mevislab.github.io/pythonqt/
GNU Lesser General Public License v2.1
67 stars 83 forks source link

Support for Python global interpreter lock #67

Open patmarion opened 5 years ago

patmarion commented 5 years ago

Hi, I've found that it's possible to mix PythonQt code with PyQt code but you can get crashes due to the python global interpreter lock. A patch like this seems to resolve the issue:

https://github.com/patmarion/PythonQt/commit/4abd4df9e1251996c809161874c4bf45ebd5e86e

Has anyone done something similar?

jcfr commented 5 years ago

Thanks for the info. I haven't.

Should we propose this as patch to upstream pythonqt ? See https://github.com/MeVisLab/pythonqt

pieper commented 5 years ago

Are you sure this is enough so that you can really use both PythonQt and PyQt in the same session? Do they end up being two complementary ways to talk to the same Qt objects?