the bulk of this window (its entire lower portionis just another reuse of the texteditor class object of the pyedit program we wrote in --pymailgui simply attaches an instance of texteditor to every view and compose window in order to get full-featured text editor component for free in factmuch on the window shown in figure - is implemented by texteditornot by pymailgui reusing pyedit' class this way means that all of its tools are at our disposal for email text--cut and pastefind and gotosaving copy of the text to fileand so on for instancethe pyedit save button at the bottom left of figure - can be used to save just the main text of the mail (as we'll see laterclicking the leftmost part button in the middle of the screen affords similar utilityand you can also save the entire message from list windowto make this reuse even more concreteif we pick the tools menu of the text portion of this window and select its info entrywe get the standard pyedit texteditor object' text statistics box shown in figure - --the same pop up we' get in the standalone pyedit text editor and in the pyview image view programs we wrote in in factthis is the third reuse of texteditor in this bookpyeditpyviewand now pymailgui all present the same text-editing interface to userssimply because they all use the same texteditor object and code pymailgui uses it in multiple roles--it both attaches instances of this class for mail viewing and compositionand pops up instances in independent windows for some text mail partsraw message text displayand python the pymailgui client