Esempio n. 1
0
from behavior import Behavior
from resourcemanager import ResourceManager
from timeline import Timeline
from framemanager import FrameManager
from controlflowdiagram import ControlFlowdiagram
from qicorememorywatcher import QiCoreMemoryWatcher
import qi

global ALFrameManager
ALFrameManager = FrameManager()

qi.registerObjectFactory("ControlFlowdiagram", ControlFlowdiagram)
qi.registerObjectFactory("QiCoreMemoryWatcher", QiCoreMemoryWatcher)
import qi

class TestPython:
   def __init__(self):
      pass

   def get(self):
      return 42

class TestPython2:
   def __init__(self):
      pass

   def get(self):
      return 43

qi.registerObjectFactory("TestPython", TestPython)
qi.registerObjectFactory("TestPython2", TestPython2)
Esempio n. 3
0
import qi


class TestPython:
    def __init__(self):
        pass

    def get(self):
        return 42


class TestPython2:
    def __init__(self):
        pass

    def get(self):
        return 43


qi.registerObjectFactory("TestPython", TestPython)
qi.registerObjectFactory("TestPython2", TestPython2)