# write a thread that reads buttoninput from fifo or pyserial or something # https://gist.github.com/elshaka/2999082 # and make this configureable from __future__ import print_function from PySide import QtCore class SerialThread(QtCore.QThread): dataReady = QtCore.Signal(str)