Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3aa2436 commit 6efb8c3Copy full SHA for 6efb8c3
1 file changed
lib/matplotlib/widgets.py
@@ -928,10 +928,11 @@ def on_submit(self, func):
928
929
def disconnect(self, cid):
930
"""remove the observer with connection id *cid*"""
931
- try:
932
- del self.observers[cid]
933
- except KeyError:
934
- pass
+ for reg in (self.change_observers, self.submit_observers):
+ try:
+ del reg[cid]
+ except KeyError:
935
+ pass
936
937
938
class RadioButtons(AxesWidget):
0 commit comments