Answer the question
In order to leave comments, you need to log in
Why is the intermediate result of the loop not displayed?
I decided to deal with threads, I wanted to make a window application in which labels would be extended in parallel in 3 different threads
Wrote a function
def multithread(self):
self.pushButton.setEnabled(False)
width = self.label.width()
koef = 50
for i in range(5):
self.label.setGeometry((QtCore.QRect(10, 50, width+koef, 41)))
width = width + koef
sleep(1)
self.pushButton.setEnabled(True)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question