(self, func)
| 62 | _actions = [] |
| 63 | |
| 64 | def __init__(self, func): |
| 65 | self.func = func |
| 66 | self.interpreter = None |
| 67 | if hasattr(PythonScriptingInstance._interpreter, "value"): |
| 68 | self.interpreter = PythonScriptingInstance._interpreter.value |
| 69 | self.__class__._actions.append(self) |
| 70 | self.callback = ctypes.CFUNCTYPE(None, ctypes.c_void_p)(lambda ctxt: self.execute()) |
| 71 | |
| 72 | def execute(self): |
| 73 | old_interpreter = None |