X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/cc0d276c3699a56c0566f0cf7ccc8acfc370f6df..0a925ced9209f41b9f15009185c2722200bdc09d:/lib/python/Tools/BoundFunction.py diff --git a/lib/python/Tools/BoundFunction.py b/lib/python/Tools/BoundFunction.py new file mode 100644 index 00000000..5447451d --- /dev/null +++ b/lib/python/Tools/BoundFunction.py @@ -0,0 +1,6 @@ +class boundFunction: + def __init__(self, fnc, *args): + self.fnc = fnc + self.args = args + def __call__(self, *args): + self.fnc(*self.args + args)