MCPcopy Create free account
hub / github.com/csaez/mscreen / registerCallback

Method registerCallback

mscreen.py:184–192  ·  view source on GitHub ↗
(self, function, type=CALLBACK_PREUPDATE)

Source from the content-addressed store, hash-verified

182 # `CALLBACK_PREUPDATE` type of callbacks, as it triggers a cleanup
183 # procedure after its execution).
184 def registerCallback(self, function, type=CALLBACK_PREUPDATE):
185 index = -1
186 if type == CALLBACK_PREUPDATE:
187 index = len(self._preCallbacks)
188 self._preCallbacks.append(function)
189 elif type == CALLBACK_POSTUPDATE:
190 index = len(self._postCallbacks)
191 self._postCallbacks.append(function)
192 return index
193
194 def unregisterCallback(self, item, type=CALLBACK_PREUPDATE):
195 if type == CALLBACK_PREUPDATE:

Callers 2

test_deform.pyFile · 0.45
test_stress.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected