MCPcopy Index your code
hub / github.com/rawpython/remi / do

Method do

editor/widgets/toolbox_opencv.py:23–33  ·  view source on GitHub ↗
(self, callback, *userdata, **kwuserdata)

Source from the content-addressed store, hash-verified

21 self.on_new_image.do = self.do
22
23 def do(self, callback, *userdata, **kwuserdata):
24 #this method gets called when an event is connected, making it possible to execute the process chain directly, before the event triggers
25 if hasattr(self.on_new_image.event_method_bound, '_js_code'):
26 self.on_new_image.event_source_instance.attributes[self.on_new_image.event_name] = self.on_new_image.event_method_bound._js_code%{
27 'emitter_identifier':self.on_new_image.event_source_instance.identifier, 'event_name':self.on_new_image.event_name}
28 self.on_new_image.callback = callback
29 self.on_new_image.userdata = userdata
30 self.on_new_image.kwuserdata = kwuserdata
31 #here the callback is called immediately to make it possible link to the plc
32 if callback is not None: #protection against the callback replacements in the editor
33 callback(self, *userdata, **kwuserdata)
34
35 @gui.decorate_set_on_listener("(self, emitter)")
36 @gui.decorate_event

Callers 15

append_instanceMethod · 0.45
add_commandMethod · 0.45
__init__Method · 0.45
disconnectMethod · 0.45
on_connectionMethod · 0.45
add_fileinput_fieldMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected