most of the examples in this book pyedit supports all the usual mouse and keyboard text-editing operationscut and pastesearch and replaceopen and saveundo and redoand so on but reallypyedit is bit more than just another text editor--it is designed to be used as both program and library componentand it can be run in variety of rolesstandalone mode as standalone text-editor programwith or without the name of file to be edited passed in on the command line in this modepyedit is roughly like other textediting utility programs ( notepad on windows)but it also provides advanced functions such as running python program code being editedchanging fonts and colors"grepthreaded external file searcha multiple window interfaceand so on more importantbecause it is coded in pythonpyedit is easy to customizeand it runs portably on windowsx windowsand macintosh pop-up mode within new pop-up windowallowing an arbitrary number of copies to appear as pop ups at once in program because state information is stored in class instance attributeseach pyedit object created operates independently in this mode and the nextpyedit serves as library object for use in other scriptsnot as canned application for example' pymailgui employs pyedit in pop-up mode to view email attachments and raw textand both pymailgui and the preceding pydemos display source code files this way embedded mode as an attached componentto provide text-editing widget for other guis when attachedpyedit uses frame-based menu and can optionally disable some of its menu options for an embedded role for instancepyview (later in this uses pyedit in embedded mode this way to serve as note editor for photosand pymailgui (in attaches it to get an email text editor for free while such mixed-mode behavior may sound complicated to implementmost of pyedit' modes are natural byproduct of coding guis with the class-based techniques we've seen in the last four running pyedit pyedit sports lots of featuresand the best way to learn how it works is to test-drive it for yourself--you can run it by starting the main file texteditor pyby running files texteditornoconsole pyw or pyedit pyw to suppress console window on windowsor from the pydemos and pygadgets launcher bars described at the end of (the launchers themselves live in the top level of the book examples directory treeto give you sampling of pyedit' interfacesfigure - shows the main pyedita text editor program/object