Skip to content

Commit

Permalink
Correct formatting for event descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
nocarryr committed Jun 1, 2021
1 parent 0a5166f commit b3c9299
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions vidhubcontrol/backends/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,20 @@ class BackendBase(Dispatcher):
connected (bool): A flag indicating the connection status.
:class:`pydispatch.properties.Property`
Events:
on_preset_added: This :class:`~pydispatch.dispatch.Event` is emitted
:Events:
.. function:: on_preset_added(backend: BackendBase = self, preset: Preset = preset)
This :class:`~pydispatch.dispatch.Event` is emitted
when a new :class:`Preset` has been added.
on_preset_stored: This :class:`~pydispatch.dispatch.Event` is emitted
.. function:: on_preset_stored(backend: BackendBase = self, preset: Preset = preset)
This :class:`~pydispatch.dispatch.Event` is emitted
when an existing :class:`Preset` has been recorded (updated).
on_preset_active: This :class:`~pydispatch.dispatch.Event` is emitted
.. function:: on_preset_active(backend: BackendBase, preset: Preset = preset, value: bool = value)
This :class:`~pydispatch.dispatch.Event` is emitted
when an existing :class:`Preset` has determined that its stored
routing information is currently active on the switcher.
Expand Down Expand Up @@ -345,13 +353,14 @@ class SmartViewBackendBase(BackendBase):
monitors (list): A ``list`` containing instances of :class:`SmartViewMonitor`
or :class:`SmartScopeMonitor`, depending on device type.
Events:
on_monitor_property_change: Dispatched when any
:class:`~pydispatch.properties.Property` value changes. The event
signature for callbacks is
``(smartview_device, property_name, value, **kwargs)`` containing
a keyword argument "monitor" containing the :class:`SmartViewMonitor`
instance.
:Events:
.. function:: on_monitor_property_change(self: SmartViewBackendBase, name: str, value: Any, monitor: SmartViewMonitor = monitor)
Dispatched when any :class:`~pydispatch.properties.Property`
value changes. The event signature for callbacks is
``(smartview_device, property_name, value, **kwargs)`` containing
a keyword argument "monitor" containing the :class:`SmartViewMonitor`
instance.
"""
num_monitors = Property()
Expand Down Expand Up @@ -564,8 +573,10 @@ class Preset(Dispatcher):
in this preset are currently active on the switcher.
This is a :class:`pydispatch.Property`
Events:
on_preset_stored: Dispatched after the preset stores its state.
:Events:
.. function:: on_preset_stored(preset: Preset = self)
Dispatched after the preset stores its state.
"""
name = Property()
Expand Down

0 comments on commit b3c9299

Please sign in to comment.