示例#1
0
    def connect(self, func):
        class ePythonSlot4LongCStrCStrCStr(eSlot4LongCStrCStrCStr):
            def __init__(self, func):
                eSlot4LongCStrCStrCStr.__init__(self)
                self.cb_func = func

        slot = ePythonSlot4LongCStrCStrCStr(WeakMethodReference(func))
        self.connect2(slot)
        return slot
示例#2
0
    def connect(self, func):
        class ePythonSlot5IntIntIntIntBool(eSlot5IntIntIntIntBool):
            def __init__(self, func):
                eSlot5IntIntIntIntBool.__init__(self)
                self.cb_func = func

        slot = ePythonSlot5IntIntIntIntBool(WeakMethodReference(func))
        self.connect2(slot)
        return slot
示例#3
0
    def connect(self, func):
        class ePythonSlot3LongStrListByteVectorList(
                eSlot3LongStrListByteVectorList):
            def __init__(self, func):
                eSlot3LongStrListByteVectorList.__init__(self)
                self.cb_func = func

        slot = ePythonSlot3LongStrListByteVectorList(WeakMethodReference(func))
        self.connect2(slot)
        return slot