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, 2 insertions, 0 deletions
diff --git a/examples/texttospeech/hello_speak/hello_speak.py b/examples/texttospeech/hello_speak/hello_speak.py index dee43c8e8..741c7b9cb 100644 --- a/examples/texttospeech/hello_speak/hello_speak.py +++ b/examples/texttospeech/hello_speak/hello_speak.py @@ -48,6 +48,7 @@ from PySide6.QtWidgets import (QApplication, QComboBox, QFormLayout, from PySide6.QtTextToSpeech import QTextToSpeech + class MainWindow(QMainWindow): def __init__(self): super().__init__() @@ -100,6 +101,7 @@ class MainWindow(QMainWindow): if (state == QTextToSpeech.State.Ready): self.sayButton.setEnabled(True) + if __name__ == '__main__': app = QApplication(sys.argv) mainWin = MainWindow() |