How to use the circuits.Component.__init__ function in circuits

To help you get started, we’ve selected a few circuits examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github realXtend / tundra / bin / pymodules / autosave / autoSave.py View on Github external
def __init__(self):        
        Component.__init__(self)        
        self.entities = []
        self.dirtyEntities = []
        self.removedEntities = []
        self.deleting_files = False
        self.signal_waiting = 0
        
        #initial values
        self.time_update = naali.config.Get("AutoSaveSettings", "time_for_update")
        if self.time_update is None:
            self.time_update = 120
        else:
            self.time_update = int(self.time_update)   
                 
        self.save = naali.config.Get("AutoSaveSettings", "save")
        if self.save is None:
            self.save = True
github realXtend / tundra / src / Application / PythonScriptModule / pymodules_old / loadurlhandler / loadurlhandler.py View on Github external
def __init__(self):
        Component.__init__(self)
        #self.proxywidget = None
        self.container = None
        
        self.webview = None
        self.lineedit_address = None
        self.progress_bar = None
        self.progress_label = None
        self.button_back = None
        self.button_forward = None
        self.button_go = None
        self.button_refresh = None
        self.button_stop = None
        
        global instance
        instance = self
github realXtend / tundra / src / Application / PythonScriptModule / pymodules_old / estatemanagement / estatemanagement.py View on Github external
def __init__(self):
        Component.__init__(self)
        self.worldstream = None
        #self.worldstream = r.getServerConnection()
        self.queue = Queue.Queue()
        self.window = EstateManagementWindow(self, self.queue)
        self.uievents = UIEventManagement(self.window) 
        self.rexlogic = r.getRexLogic()
        self.appdatafolder = ""
        try:
            self.appdatafolder = r.getApplicationDataDirectory()
        except:
            r.logInfo("Unexpected error:", sys.exc_info()[0])

        self.rexlogic.connect("OnIncomingEstateOwnerMessage(QVariantList)", self.onEstateOwnerMessage)
        self.ents = []
        self.managers = {}
        self.banned = {}
github realXtend / tundra / PythonScriptModule / proto / circuits_manager.py View on Github external
def __init__(self):
        Component.__init__(self)
        self.data = 1
github realXtend / tundra / bin / pymodules / circuits_manager.py View on Github external
def __init__(self):
        # instanciated from the c++ side, as modulemanager there
        assert self.instance is None
        ComponentRunner.instance = self #is used as a singleton now

        # Create a new circuits Manager
        self.m = Manager()# + Debugger()

        Component.__init__(self)
        
        m = self.m
        
        #or __all__ in pymodules __init__ ? (i.e. import pymodules would do that)
        import autoload
        autoload.load(m)
        self.forwardevent = True
        r.eventhandled = False
        self.mouseinfo = MouseInfo(0,0,0,0)
        #m.start()
github realXtend / tundra / src / Application / PythonScriptModule / pymodules_old / objectedit / objectedit.py View on Github external
def __init__(self):
        self.sels = []  
        Component.__init__(self)
        self.window = window.ObjectEditWindow(self)
        self.resetValues()
        self.worldstream = r.getServerConnection()
        self.usingManipulator = False
        self.useLocalTransform = False
        self.cpp_python_handler = None
        self.left_button_down = False
        self.keypressed = False

        self.shortcuts = {
            (Qt.Key_Z, Qt.ControlModifier) : self.undo,
            (Qt.Key_Delete, Qt.NoModifier) : self.deleteObject,
            (Qt.Key_L, Qt.AltModifier) : self.linkObjects,
            (Qt.Key_L, Qt.ControlModifier|Qt.ShiftModifier) : self.unlinkObjects,
        }
github realXtend / tundra / src / Application / PythonScriptModule / pymodules_old / voiceindicator.py View on Github external
def __init__(self):
        Component.__init__(self)
        self._commService = naali.communicationsservice
        self._voiceSession = None
        self._indicators = {}
        self._commService.connect("InWorldVoiceAvailable()", self.onNewVoiceSession)
github realXtend / tundra / src / Application / PythonScriptModule / pymodules_old / usr / keycommands.py View on Github external
def __init__(self):
        Component.__init__(self)
        """
        This dictionary has the keyboard commands, well the
        event ids for different keys that are currently enabled
        on the python side. Now using qt input constants.
        
        (KEY_ID, MOD_ID): methodToCall()
        """

        self.inputmap = {
            (Qt.Key_Period, Qt.AltModifier): self.run_commandpy,
            (Qt.Key_F11, Qt.NoModifier): self.restart_modulemanager
            }
            #r.MoveForwardPressed: self.overrideForwardWalking #overrides the moveforward event

        inputcontext.connect('KeyPressed(KeyEvent*)', self.on_keypressed)
        #XXX a temp hack to have restart work in login screen / ether too