Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

casselineau
Copy link
Contributor

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.

Without this change, the existing singleton of QApplication prevents a new window to open after a previous one has been previously closed.
This solution works and has been suggested online for PySide2 several times.
@looooo looooo mentioned this pull request Dec 2, 2023
@looooo
Copy link
Collaborator

looooo commented Dec 2, 2023

merged in #112

@looooo looooo closed this Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants