Example #1
0
    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. is this needed anywhere actually? XXX

        self.mouseinfo = MouseInfo(0, 0, 0, 0)
        #m.start() #instead we tick() & flush() in update

        self.firstrun = True
        r.restart = False
        self.start()
        r.manager = self
Example #2
0
    def __init__(self):
        # instanciated from the c++ side, as modulemanager there
        #assert self.instance is None
        Component.__init__(self)
        ComponentRunner.instance = self  #is used as a singleton now

        self.mouseinfo = MouseInfo(0, 0, 0, 0)
        #m.start() #instead we tick() & flush() in update

        self.firstrun = True
        self.eventhandled = False
        r.restart = False
        self.start()
        r.manager = self