Skip to content

Add subscribe and unsubscribe PySwitch methods

Francis Lecavalier requested to merge feat/switcher-callbacks into develop

Add two new methods to the Python API related to the PySwitch object:

  • subscribe: subscribe to either the on-quiddity-created or the on-quiddity-removed signals.
  • unsubscribe: unsubscribe from either one of the above signals.

Much like the PyQuiddity methods sharing the same name, a user_data can also be provided when subscribing: this user_data will be accessible from inside the specified callback function.

Merge request reports