aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Tools/BoundFunction.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-11-22 01:35:21 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-11-22 01:35:21 +0000
commit0a925ced9209f41b9f15009185c2722200bdc09d (patch)
treeb35dd9ea12540f607e0670e774a6d8589e203042 /lib/python/Tools/BoundFunction.py
parentcc0d276c3699a56c0566f0cf7ccc8acfc370f6df (diff)
downloadenigma2-0a925ced9209f41b9f15009185c2722200bdc09d.tar.gz
enigma2-0a925ced9209f41b9f15009185c2722200bdc09d.zip
add boundFunction to Tools
Diffstat (limited to 'lib/python/Tools/BoundFunction.py')
-rw-r--r--lib/python/Tools/BoundFunction.py6
1 files changed, 6 insertions, 0 deletions
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)