Waiting For A Timer To Terminate Before Continuing Running The Code July 25, 2024 Post a Comment The following code updates the text of a button every second after the START button was pressed. The intended functionality is for the code to 'wait' until the timer has stopped beSolution 1: The solution I found that works was to replacewhileTrue: if not self.timer.isActive(): breakCopywithwhileself.timer.isActive(): QtGui.QApplication.processEvents() CopyI'm not certain that this is the best solution, though. Share Post a Comment for "Waiting For A Timer To Terminate Before Continuing Running The Code"
Post a Comment for "Waiting For A Timer To Terminate Before Continuing Running The Code"