diff --git a/main.py b/main.py index 3ef1ffc..24d32d1 100644 --- a/main.py +++ b/main.py @@ -56,7 +56,10 @@ def start_typing(self): self.startButton.setEnabled(False) self.stopButton.setEnabled(True) - time.sleep(delay) + if delay > 0: + QTimer.singleShot(delay * 1000, lambda: self.initiate_typing(text, interval, type_enter, chars_per_stroke)) + else: + pass self.initiate_typing(text, interval, type_enter, chars_per_stroke) def initiate_typing(self, text, interval, type_enter, chars_per_stroke):