coin3d / pivy

python bindings to coin3d
ISC License
53 stars 37 forks source link

Update sogui.py to prevent QApplication singleton destruction issue #110

Closed casselineau closed 7 months ago

casselineau commented 8 months ago

Solves the following error: " File "/usr/lib/python3/dist-packages/pivy/sogui.py", line 122, in init SoGui_Quarter_Wrapper.qApp = QtWidgets.QApplication(sys.argv) RuntimeError: Please destroy the QApplication singleton before creating a new QApplication instance."

Without this change, the existing singleton of QApplication prevents a new window to open after a previous one has been closed. This solution works and has been suggested online for PySide2 several times.

looooo commented 7 months ago

merged in #112