File tree Expand file tree Collapse file tree 3 files changed +136
-110
lines changed Expand file tree Collapse file tree 3 files changed +136
-110
lines changed Original file line number Diff line number Diff line change
1
+ Widgets use ``CallbackRegistry `` to save callbacks
2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3
+
4
+ `.Widget `\s with event observers now use a `.CallbackRegistry ` for storing
5
+ callbacks. This is consistent with canvas event callbacks, and fixes some bugs
6
+ in widget callback handling.
7
+
8
+ Due to this change, callback methods are now stored as weak references, which
9
+ means you must keep a reference to the associated object. Otherwise it may be
10
+ garbage collected.
Original file line number Diff line number Diff line change
1
+ Widget class internals
2
+ ~~~~~~~~~~~~~~~~~~~~~~
3
+
4
+ Several `.widgets.Widget ` class internals have been privatized and deprecated:
5
+
6
+ * ``AxesWidget.cids ``
7
+ * ``Button.cnt `` and ``Button.observers ``
8
+ * ``CheckButtons.cnt `` and ``CheckButtons.observers ``
9
+ * ``RadioButtons.cnt `` and ``RadioButtons.observers ``
10
+ * ``Slider.cnt `` and ``Slider.observers ``
11
+ * ``TextBox.cnt ``, ``TextBox.change_observers `` and
12
+ ``TextBox.submit_observers ``
You can’t perform that action at this time.
0 commit comments