From c182fe692e0b92f305c9bafb42a7f3cadd5c4e53 Mon Sep 17 00:00:00 2001 From: Michael Reuter Date: Wed, 26 Feb 2014 10:42:07 -0500 Subject: [PATCH] Refs #9092. Accepting and passing keywords. --- Code/Mantid/MantidPlot/mantidplotpy/proxies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Mantid/MantidPlot/mantidplotpy/proxies.py b/Code/Mantid/MantidPlot/mantidplotpy/proxies.py index e4b766d46215..8cecbe1f4c94 100644 --- a/Code/Mantid/MantidPlot/mantidplotpy/proxies.py +++ b/Code/Mantid/MantidPlot/mantidplotpy/proxies.py @@ -81,7 +81,7 @@ def _get_argtype(self, argument): argtype = int return argtype -def threadsafe_call(callable, *args): +def threadsafe_call(callable, *args, **kwargs): """ Calls the given function with the given arguments by passing it through the CrossThreadCall class. This @@ -89,7 +89,7 @@ def threadsafe_call(callable, *args): happen on the correct thread. """ caller = CrossThreadCall(callable) - return caller.dispatch(*args) + return caller.dispatch(*args, **kwargs) def new_proxy(classType, callable, *args, **kwargs): """