diff options
Diffstat (limited to 'examples/texttospeech/hello_speak/hello_speak.py')
-rw-r--r-- | examples/texttospeech/hello_speak/hello_speak.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/texttospeech/hello_speak/hello_speak.py b/examples/texttospeech/hello_speak/hello_speak.py index 970d58b57..98be4f0c6 100644 --- a/examples/texttospeech/hello_speak/hello_speak.py +++ b/examples/texttospeech/hello_speak/hello_speak.py @@ -82,7 +82,7 @@ class MainWindow(QMainWindow): engineName = engineNames[0] self.engine = QTextToSpeech(engineName) self.engine.stateChanged.connect(self.stateChanged) - self.setWindowTitle('QTextToSpeech Example ({})'.format(engineName)) + self.setWindowTitle(f'QTextToSpeech Example ({engineName})') self.voices = [] for voice in self.engine.availableVoices(): self.voices.append(voice) |