@@ -111,8 +111,6 @@ class AxesWidget(Widget):
111
111
If False, the widget does not respond to events.
112
112
"""
113
113
114
- cids = _api .deprecated ("3.4" )(property (lambda self : self ._cids ))
115
-
116
114
def __init__ (self , ax ):
117
115
self .ax = ax
118
116
self .canvas = ax .figure .canvas
@@ -153,11 +151,6 @@ class Button(AxesWidget):
153
151
The color of the button when hovering.
154
152
"""
155
153
156
- cnt = _api .deprecated ("3.4" )(property ( # Not real, but close enough.
157
- lambda self : len (self ._observers .callbacks ['clicked' ])))
158
- observers = _api .deprecated ("3.4" )(property (
159
- lambda self : self ._observers .callbacks ['clicked' ]))
160
-
161
154
def __init__ (self , ax , label , image = None ,
162
155
color = '0.85' , hovercolor = '0.95' ):
163
156
"""
@@ -323,11 +316,6 @@ class Slider(SliderBase):
323
316
Slider value.
324
317
"""
325
318
326
- cnt = _api .deprecated ("3.4" )(property ( # Not real, but close enough.
327
- lambda self : len (self ._observers .callbacks ['changed' ])))
328
- observers = _api .deprecated ("3.4" )(property (
329
- lambda self : self ._observers .callbacks ['changed' ]))
330
-
331
319
def __init__ (self , ax , label , valmin , valmax , valinit = 0.5 , valfmt = None ,
332
320
closedmin = True , closedmax = True , slidermin = None ,
333
321
slidermax = None , dragging = True , valstep = None ,
@@ -989,11 +977,6 @@ class CheckButtons(AxesWidget):
989
977
each box, but have ``set_visible(False)`` when its box is not checked.
990
978
"""
991
979
992
- cnt = _api .deprecated ("3.4" )(property ( # Not real, but close enough.
993
- lambda self : len (self ._observers .callbacks ['clicked' ])))
994
- observers = _api .deprecated ("3.4" )(property (
995
- lambda self : self ._observers .callbacks ['clicked' ]))
996
-
997
980
def __init__ (self , ax , labels , actives = None ):
998
981
"""
999
982
Add check buttons to `matplotlib.axes.Axes` instance *ax*.
@@ -1141,12 +1124,6 @@ class TextBox(AxesWidget):
1141
1124
The color of the text box when hovering.
1142
1125
"""
1143
1126
1144
- cnt = _api .deprecated ("3.4" )(property ( # Not real, but close enough.
1145
- lambda self : sum (len (d ) for d in self ._observers .callbacks .values ())))
1146
- change_observers = _api .deprecated ("3.4" )(property (
1147
- lambda self : self ._observers .callbacks ['change' ]))
1148
- submit_observers = _api .deprecated ("3.4" )(property (
1149
- lambda self : self ._observers .callbacks ['submit' ]))
1150
1127
DIST_FROM_LEFT = _api .deprecate_privatize_attribute ("3.5" )
1151
1128
1152
1129
def __init__ (self , ax , label , initial = '' ,
@@ -1477,11 +1454,6 @@ def __init__(self, ax, labels, active=0, activecolor='blue'):
1477
1454
1478
1455
self ._observers = cbook .CallbackRegistry (signals = ["clicked" ])
1479
1456
1480
- cnt = _api .deprecated ("3.4" )(property ( # Not real, but close enough.
1481
- lambda self : len (self ._observers .callbacks ['clicked' ])))
1482
- observers = _api .deprecated ("3.4" )(property (
1483
- lambda self : self ._observers .callbacks ['clicked' ]))
1484
-
1485
1457
def _clicked (self , event ):
1486
1458
if self .ignore (event ) or event .button != 1 or event .inaxes != self .ax :
1487
1459
return
0 commit comments