VisualInterface#
- class myogestic.gui.widgets.templates.VisualInterface(main_window, name='VisualInterface', setup_interface_ui=None, recording_interface_ui=None)[source]#
Base class for visual interfaces in the MyoGestic application.
This class is the base class for visual interfaces in the MyoGestic application.
- Parameters:
main_window (QMainWindow) – The main window of the visual interface.
name (str) –
The name of the visual interface. Default is “VisualInterface”.
Important
The name is used to identify the visual interface in the application. It should be unique.
setup_interface_ui (Type[SetupInterfaceTemplate]) – The setup interface of the visual interface.
recording_interface_ui (Type[RecordingInterfaceTemplate]) – The recording interface of the visual interface.
- _main_window#
The main_window widget of the visual interface.
- Type:
QObject
- setup_interface_ui#
The setup interface of the visual interface.
- Type:
- recording_interface_ui#
The recording interface of the visual interface.
- incoming_message_signal#
The incoming message signal of the visual interface.
- Type:
PySide6.SignalInstance
- outgoing_message_signal#
The outgoing message signal of the visual interface.
- Type:
PySide6.SignalInstance
Methods
__init__
(main_window[, name, ...])_log_error
(message)Log an error message.
close_event
(event)Close the interface and stop necessary processes.
Disable all UI elements.
Enable all UI elements.
- close_event(event)[source]#
Close the interface and stop necessary processes.
- Parameters:
event (QCloseEvent)
- Return type:
None