Files
openide/python/testData/debug/qt/test_pyside2_1.py
Andrey Lisin 2d8453d970 PY-37645 Add Python debugger fallback exception hook
GitOrigin-RevId: e5f9bbd865e25eeae19842b983ba6855dfeba250
2019-09-16 16:33:16 +00:00

17 lines
277 B
Python

from PySide2 import QtCore
import sys
class AThread(QtCore.QThread):
def run(self):
for i in range(3):
print("ping %d" % i)
app = QtCore.QCoreApplication([])
thread = AThread()
thread.finished.connect(app.exit)
thread.start()
sys.exit(app.exec_())