Thanks Marshall,
By using update() I can now get the output to show up in the text widget...
The one problem which I am still not sure how to solve is, the process I mention is invoked by hitting the button...this button stays depressed for like 5 seconds or so...what's the trick to un-depress this button as soon as it's clicked...?