Paradigm Presenter

class gpype.frontend.widgets.paradigm_presenter.ParadigmPresenter(paradigm=None)[source]

Bases: Widget, UDPReceiver

Control widget for g.tec ParadigmPresenter integration.

Provides interface for loading, starting, and stopping paradigms using the g.tec ParadigmPresenter library. Inherits from UDPReceiver to receive stimulus onset messages from ParadigmPresenter via UDP. Supports folder-based paradigm selection and manual file loading.

Parameters:

paradigm (str)

__init__(paradigm=None)[source]

Initialize the ParadigmPresenter control widget.

Initializes both the Widget UI components and UDPReceiver for receiving stimulus onset messages from ParadigmPresenter.

Parameters:

paradigm (str, optional) – Path to paradigm file (.xml) or folder containing paradigm files. If None, uses file dialog.

terminate()[source]

Clean up resources when the widget is terminated.

Closes ParadigmPresenter windows and shuts down the presenter before calling the parent terminate method.