Skip to content

Instantly share code, notes, and snippets.

View mr-internetix's full-sized avatar
🇮🇳
_++_

Ajit Yadav mr-internetix

🇮🇳
_++_
View GitHub Profile
@Orizzu
Orizzu / QThread.py
Last active June 5, 2024 00:35
how to create a QThread in PyQt5
from PyQt5 import QtCore
from PyQt5.QtWidgets import QMainWindow, QApplication, QLabel, QPushButton, QVBoxLayout, QWidget
from PyQt5.QtCore import Qt, QObject, QRunnable, pyqtSlot, QThreadPool, QTimer
import traceback, sys
import datetime
# this may be a long sample but you can copy and pase it for test
# the different parts of code are commented so it can be clear what it does
class WorkerSignals(QObject):