<gh_stars>0
"""
worker class which handles the signal to and from the slot
"""
import sys
from PyQt5.QtCore import QThread, QObject, pyqtSignal, pyqtSlot

class w(QThread):
    # explicit signal sent in the startCounting function
    ut = pyqtSignal(int)
    
    # explicit slot that takes input from the scs
    @pyqtSlot(int)
    def startCounting(self, i):
        while True:
            self.ut.emit(i)
            QThread.sleep(1)


"""
worker class which handles the signal to and from the slot
"""
import sys
from PyQt5.QtCore import QThread, QObject, pyqtSignal, pyqtSlot

class w(QThread):
    # explicit signal sent in the startCounting function
    ut = pyqtSignal(int)
    
    # explicit slot that takes input from the scs
    @pyqtSlot(int)
    def startCounting(self, i):
        while True:
            self.ut.emit(i)
            QThread.sleep(1)
worker class which handles the signal to and from the slot # explicit signal sent in the startCounting function # explicit slot that takes input from the scs