Vote count:
0
I have a set of python scripts. They are desinged to use in console. But I need redirect output to PyQt text edit. I use pyqt signals to append test output to pyqt widget. But some def's are in other modules and I need handle output from them into text edit too.
Def's fomething like:
#
def StartStream(): print "Starting Stream...", // I need redirect this to text edit
#write command code to CommandCode
dbg.Stop()
memory.WriteWord(COMMAND_REGISTER, CMD_START_STREAM)
#check status
status = readStatusRegister()
if status == 0x01:
print "could not start stream" // I need redirect this to text edit
else:
print "done" // I need redirect this to text edit
return status // And receive def result also
asked 1 min ago
PyQt print def output to text edit
Aucun commentaire:
Enregistrer un commentaire