class SomeThread(QThread):
progressed = pyqtSignal(int)
def __init__(self):
super().__init__()
def run(self):
for i in range(1, 11):
self.progressed.emit(i)
r = requests.get("http://ya.ru")
print("Status: ", r.status_code)
time.sleep(0.5)