Esempio n. 1
0
	def rfidEvent(self, rfid_str):
		# Guard: This widget has focus?
		if not self._tabHasFocus():
			return

		e = KeyEmulator()
		e.sendInput(rfid_str)
Esempio n. 2
0
	def barcodeSubmitClicked(self):
		str = self.barcode_line.text()
		e = KeyEmulator()

		self.main_window.activateWindow()
		e.sendInput(str)
		e.sendKeyPress("Return")
		e.sendKeyRelease("Return")
		print "barcode submit clicked"