new_proxy

pymantidplot.proxies.new_proxy(classType, callable, *args, **kwargs)

Calls the callable object with the given args and kwargs dealing with possible thread-safety issues. If the returned value is not None it is wrapped in a new proxy of type classType

@param classType :: A new proxy class for the return type @param callable :: A python callable object, i.e. a function/method @param *args :: The positional arguments passed on as given @param *kwargs :: The keyword arguments passed on as given