Esempio n. 1
0
	def handleInput (self, inputClass):
		BugUtil.debugInput(inputClass)
		if inputClass.getNotifyCode() == NotifyCode.NOTIFY_CLICKED and inputClass.getFunctionName() + str(inputClass.getID()) in self.letterTextIDs:
			screen = self.top.getScreen()
			screen.selectRow(self.tableName, self.iLastRow, True)
			screen.selectRow(self.tableName, inputClass.getData1(), True)
		return 0
	def handleInput (self, inputClass):
		BugUtil.debugInput(inputClass)
		if (inputClass.getNotifyCode() == NotifyCode.NOTIFY_CLICKED 
				and inputClass.getFunctionName() + str(inputClass.getID()) in self.letterTextIDs):
			screen = self.top.getScreen()
			screen.selectRow(self.tableName, self.iLastRow, True)
			screen.selectRow(self.tableName, inputClass.getData1(), True)
		return 0
	def handleInput(self, inputClass):
		"""
		Handles widget input.
		"""
		BugUtil.debugInput(inputClass)
		if inputClass.getNotifyCode() == NotifyCode.NOTIFY_CLICKED and inputClass.getFunctionName() == self.COLOR_WIDGET_PREFIX:
			self.onColorButton(inputClass.getID())
			return 1
		return 0
Esempio n. 4
0
    def handleInput(self, inputClass):
        """
		Handles widget input.
		"""
        BugUtil.debugInput(inputClass)
        if inputClass.getNotifyCode(
        ) == NotifyCode.NOTIFY_CLICKED and inputClass.getFunctionName(
        ) == self.COLOR_WIDGET_PREFIX:
            self.onColorButton(inputClass.getID())
            return 1
        return 0