MrBlueSky wrote:
Morning! I'm writing my first Python program, so please have patience!
I'd like to redirect the output from my application's unit tests
(import unittest) to a Tkinter Text object. I found the magic to
redirect stdout and stderr:
sys.stdout = myTextWindow
Excellent, that seems to have done the trick!
FWIW: I should admit that I haven't really taken the time to properly
understand unittest... I'm too eager to get my tests written :-)
So for reasons I do not as yet understand Peter's suggestion above
didn't quite work for me but the following
Morning! I'm writing my first Python program, so please have patience!
I'd like to redirect the output from my application's unit tests
(import unittest) to a Tkinter Text object. I found the magic to
redirect stdout and stderr:
sys.stdout = myTextWindow
sys.stderr = myTextWindow
where