This question has already been answered:
I am developing one python project using gui with Qt support. faced such a problem:
while True: res = self.file.load("file.txt", isList=False) self.log("Ожидаем ввод") print("Ожидаем ввод") if res: break else: self.log("Ждём") print("Ждём") time.sleep(5) The fact is that the print "We are waiting" and "We are waiting for input" is written to the console, but the guy dies tightly. Just hangs and that's it. What could be the problem?