File tree Expand file tree Collapse file tree
api/next_api_changes/deprecations Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,3 @@ The *cid* parameter of `.CallbackRegistry.disconnect` has been renamed to
44*cid_or_func *. The method now also accepts a callable, which will disconnect
55that callback from all signals or from a specific signal if the *signal *
66keyword argument is provided.
7-
8- ``CallbackRegistry.disconnect_func `` has been removed; use
9- ``disconnect(func, signal=...) `` instead.
Original file line number Diff line number Diff line change 1- ``CallbackRegistry.disconnect_func `` to disconnect callbacks by function
1+ ``CallbackRegistry.disconnect `` allows directly callbacks by function
22-------------------------------------------------------------------------
33
4- `.CallbackRegistry ` now has a `~.CallbackRegistry.disconnect_func ` method that
5- allows disconnecting a callback by passing the signal and function directly,
6- instead of needing to track the callback ID returned by
7- `~.CallbackRegistry.connect `.
4+ `.CallbackRegistry ` now allows directly passing a function and optionally signal
5+ `~.CallbackRegistry.disconnect ` to disconnect instead of needing to track the callback
6+ ID returned by `~.CallbackRegistry.connect `.
87
98.. code-block :: python
109
@@ -17,4 +16,4 @@ instead of needing to track the callback ID returned by
1716 callbacks.connect(' my_signal' , my_callback)
1817
1918 # Disconnect by function reference instead of callback ID
20- callbacks.disconnect_func (' my_signal' , my_callback)
19+ callbacks.disconnect (' my_signal' , my_callback)
You can’t perform that action at this time.
0 commit comments