MCPcopy Index your code
hub / github.com/QuantFans/quantdigger / add_observer

Method add_observer

quantdigger/widgets/mplotwidgets/widgets.py:124–131  ·  view source on GitHub ↗

When the slider value is changed, call *func* with the new slider position A connection id is returned which can be used to disconnect

(self, obj)

Source from the content-addressed store, hash-verified

122
123
124 def add_observer(self, obj):
125 """
126 When the slider value is changed, call *func* with the new
127 slider position
128
129 A connection id is returned which can be used to disconnect
130 """
131 self.observers[obj.name] = obj
132
133
134 def remove_observer(self, cid):

Callers 2

add_widgetMethod · 0.45
_init_sliderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected