mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
17 lines
277 B
Python
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_())
|