Re: Redirecting unittest output to a Text widget

2006-05-10 Thread Peter Otten
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

Re: Redirecting unittest output to a Text widget

2006-05-10 Thread MrBlueSky
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

Redirecting unittest output to a Text widget

2006-05-10 Thread MrBlueSky
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