Spaces:
Runtime error
Runtime error
File size: 963 Bytes
9b674e9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
from PyQt5.QtCore import pyqtSignal, QObject
class SignalHandler(QObject):
"""
A QObject subclass to handle signals used in the GUI application.
This class defines several signals that can be used to communicate
between different components of the GUI application.
Signals:
- recording_started: Signal emitted when recording is started.
- recording_stopped: Signal emitted when recording is stopped.
- assistant_thinking: Signal emitted when the assistant is processing a request.
- assistant_response_ready: Signal emitted when the assistant response is ready to be displayed.
- assistant_response_stopped: Signal emitted when the assistant response display is stopped.
"""
recording_started = pyqtSignal()
recording_stopped = pyqtSignal()
assistant_thinking = pyqtSignal()
assistant_response_ready = pyqtSignal()
assistant_response_stopped = pyqtSignal()
signal_handler = SignalHandler()
|