PySide2 Not Closing Correctly With Basic Example
When I run the basic script: import sys from PySide2.QtWidgets import QApplication, QLabel app = QApplication(sys.argv) label = QLabel('Hello World') label.show() app.exec_() for
Solution 1:
Probably your IDE has already created a QApplication, so the solution is to create a QApplication if it does not exist:
app = QApplication.instance()
if app is None:
app = QApplication(sys.argv)
Post a Comment for "PySide2 Not Closing Correctly With Basic Example"