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'))
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'))
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'))
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)
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()
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 _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()
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')
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()