Base Plugins
- class qtpyvcp.plugins.base_plugins.Plugin[source]
QtPyVCP Plugin base class.
- initialise()[source]
Initialize the plugin.
This method is called after the main event loop has started. Any timers or threads used by the plugin should be started here.
This method should set
self._initializedto true if successfully.
- class qtpyvcp.plugins.base_plugins.DataPlugin[source]
DataPlugin.
- class qtpyvcp.plugins.base_plugins.DataChannel(fget=None, fset=None, fstr=None, data=None, settable=False, doc=None)[source]
-
- notify(slot, *args, **kwargs)[source]
Connect slot to this channel, and hand back the connection.
The returned object is the callback actually connected to the signal, which is not slot itself – it is wrapped for QObject-lifetime safety, and for the string/getter variants it is a fresh closure. So the caller cannot undo the connection with disconnect(slot) later. Returning the wrapper gives subscribers something to pass to unnotify() when they need to stop listening, e.g. a DRO whose reference type changes and must drop the channel it no longer shows.
- unnotify(callback)[source]
Undo a notify(), given the callback that call returned.
Tolerates a callback that is already disconnected or whose owner Qt object has gone, so callers can tear down unconditionally.
- onValueChanged(slot, *args, **kwargs)
Connect slot to this channel, and hand back the connection.
The returned object is the callback actually connected to the signal, which is not slot itself – it is wrapped for QObject-lifetime safety, and for the string/getter variants it is a fresh closure. So the caller cannot undo the connection with disconnect(slot) later. Returning the wrapper gives subscribers something to pass to unnotify() when they need to stop listening, e.g. a DRO whose reference type changes and must drop the channel it no longer shows.