use boundFunction from tools
[enigma2.git] / lib / python / Components / NimManager.py
index e7593200d20a22d455114aa40266028604631198..14517d75e9abcd306fc4c836c53678782fd790f0 100644 (file)
@@ -18,6 +18,8 @@ from Tools import XMLTools
 from xml.sax import make_parser
 from xml.sax.handler import ContentHandler
 
+from Tools.BoundFunction import boundFunction
+
 def tryOpen(filename):
        try:
                procFile = open(filename)
@@ -84,13 +86,6 @@ class SecConfigure:
                self.NimManager = nimmgr
                self.update()
                
-class boundFunction:
-       def __init__(self, fnc, *args):
-               self.fnc = fnc
-               self.args = args
-       def __call__(self, *args):
-               self.fnc(*self.args + args)
-
 class nimSlot:
        def __init__(self, slotid, nimtype, name):
                self.slotid = slotid