def click(self, data):
modules = data.get("<STR_LIT>")<EOL>for module_name in self.find_modules(modules):<EOL><INDENT>module = self.py3_wrapper.output_modules[module_name]<EOL>if module["<STR_LIT:type>"] == "<STR_LIT>":<EOL><INDENT>name = module["<STR_LIT>"].module_name<EOL>instance = module["<STR_LIT>"].module_inst<EOL><DEDENT>else:<EOL><INDENT>name = module["<STR_LIT>"].name<EOL>instance = module["<STR_LIT>"].instance<EOL><DEDENT>event = {"<STR_LIT:name>": name, "<STR_LIT>": instance}<EOL>for name, message in CLICK_OPTIONS:<EOL><INDENT>event[name] = data.get(name)<EOL><DEDENT>if self.debug:<EOL><INDENT>self.py3_wrapper.log(event)<EOL><DEDENT>self.py3_wrapper.events_thread.dispatch_event(event)<EOL><DEDENT>
send a click event to the module(s)