I have a list of dictionaries like dict = {'text': 'abcd', 'delay': 1.234}
. I have a loop which for each dictionary of the list wait for the 'delay'
and after do something with the 'text'
:
for element in myList:
time.sleep(element['delay'])
self.ui.textEdit.append(element['text'])
print element['text']
myFunction(element['text'])
The sleep
, print
and myFunction
work as they should work. But the textEdit never change and in title of my window I have: 'Not responding'. How can I avoid this problem ?