コード例 #1
0
 def __withdrawButtonDown(self, event):
     messenger.send('wakeup')
     task = Task(self.__runCounter)
     task.delayTime = 0.4
     task.prevTime = 0.0
     task.delta = -1
     hitLimit, jar, bank, trans = self.__updateTransaction(task.delta)
     if not hitLimit:
         taskMgr.add(task, self.taskName('runCounter'))
コード例 #2
0
 def __withdrawButtonDown(self, event):
     messenger.send('wakeup')
     task = Task(self.__runCounter)
     task.delayTime = 0.4
     task.prevTime = 0.0
     task.delta = -1
     hitLimit, jar, bank, trans = self.__updateTransaction(task.delta)
     if not hitLimit:
         taskMgr.add(task, self.taskName('runCounter'))
コード例 #3
0
 def __upButtonDown(self, event):
     messenger.send('wakeup')
     task = Task(self.__runCounter)
     task.delayTime = 0.4
     task.prevTime = 0.0
     task.delta = 1
     hitLimit, laff, trans = self.__updateLaffMeter(task.delta)
     if not hitLimit:
         taskMgr.add(task, self.taskName('runCounter'))
コード例 #4
0
 def _BankGui__depositButtonDown(self, event):
     messenger.send('wakeup')
     task = Task(self._BankGui__runCounter)
     task.delayTime = 0.40000000000000002
     task.prevTime = 0.0
     task.delta = 1
     (hitLimit, jar, bank,
      trans) = self._BankGui__updateTransaction(task.delta)
     if not hitLimit:
         taskMgr.add(task, self.taskName('runCounter'))
コード例 #5
0
    def __taskUpdate(self, delta, event):
        messenger.send('wakeup')

        task = Task(self.__runTask)
        task.delayTime = 0.4
        task.prevTime = 0.0
        task.delta = delta
        hitLimit = self.__updateIndex(delta)

        if not hitLimit:
            taskMgr.add(task, 'runGloveCounter-%s' % self.id)
コード例 #6
0
 def __decButtonDown(self, event):
     task = Task(self.__scrollByTask)
     task.setDelay(1.0 / self.scrollSpeed)
     task.prevTime = 0.0
     task.delta = -1
     taskName = self.taskName('scroll')
     taskMgr.add(task, taskName)
     self.scrollBy(task.delta)
     messenger.send('wakeup')
     if self.decButtonCallback:
         self.decButtonCallback()
コード例 #7
0
    def __taskUpdate(self, delta, event):
        messenger.send('wakeup')

        task = Task(self.__runTask)
        task.delayTime = 0.4
        task.prevTime = 0.0
        task.delta = delta
        hitLimit = self.__updateLaffMeter(delta)

        if not hitLimit:
            taskMgr.add(task, self.taskName('runLaffCounter'))
コード例 #8
0
 def _DirectScrolledList__decButtonDown(self, event):
     task = Task(self._DirectScrolledList__scrollByTask)
     task.setDelay(1.0 / self.scrollSpeed)
     task.prevTime = 0.0
     task.delta = -1
     taskName = self.taskName('scroll')
     taskMgr.add(task, taskName)
     self.scrollBy(task.delta)
     messenger.send('wakeup')
     if self.decButtonCallback:
         self.decButtonCallback()
コード例 #9
0
 def __decButtonDown(self, event):
     assert self.notify.debugStateCall(self)
     task = Task(self.__scrollByTask)
     task.delayTime = (1.0 / self.scrollSpeed)
     task.prevTime = 0.0
     task.delta = -1
     taskName = self.taskName("scroll")
     #print "decButtonDown: adding ", taskName
     taskMgr.add(task, taskName)
     self.scrollBy(task.delta)
     messenger.send('wakeup')
コード例 #10
0
    def __taskUpdate(self, delta, event):
        messenger.send('wakeup')

        task = Task(self.__runTask)
        task.delayTime = 0.4
        task.prevTime = 0.0
        task.delta = delta
        hitLimit = self.__updateIndex(delta)

        if not hitLimit:
            taskMgr.add(task, 'runGloveCounter-%s' % self.id)
コード例 #11
0
    def __taskUpdate(self, delta, event):
        messenger.send('wakeup')

        task = Task(self.__runTask)
        task.delayTime = 0.4
        task.prevTime = 0.0
        task.delta = delta
        hitLimit = self.__updateLaffMeter(delta)

        if not hitLimit:
            taskMgr.add(task, self.taskName('runLaffCounter'))
 def __decButtonDown(self, event):
     assert self.notify.debugStateCall(self)
     task = Task(self.__scrollByTask)
     task.setDelay(1.0 / self.scrollSpeed)
     task.prevTime = 0.0
     task.delta = -1
     taskName = self.taskName("scroll")
     #print "decButtonDown: adding ", taskName
     taskMgr.add(task, taskName)
     self.scrollBy(task.delta)
     messenger.send('wakeup')
     if self.decButtonCallback:
         self.decButtonCallback()