Commit 624d7b4
committed
Simplifications to ToolManager.{add,remove}_tool.
On the addition side, inline ToolManager._tool_added_event. It's used
at a single place, and other events emitted by ToolManager are not split
out into their own helper methods.
On the removal side, deprecate the Tool.destroy handle: it's unused, and
if a tool really wants to know when it's getting removed, it can just
connect to its own tool_removed_event, which can also be used by other
callers.1 parent 53c5f88 commit 624d7b4
File tree
3 files changed
+13
-10
lines changed- doc/api/next_api_changes/deprecations
- lib/matplotlib
3 files changed
+13
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
216 | 218 | | |
217 | | - | |
218 | | - | |
219 | | - | |
| 219 | + | |
| 220 | + | |
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| |||
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
287 | | - | |
288 | | - | |
| 288 | + | |
| 289 | + | |
289 | 290 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
| 291 | + | |
294 | 292 | | |
295 | 293 | | |
296 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
0 commit comments