""###############################################################################pyedit python/tkinter text file editor and component uses the tk text widgetplus guimaker menus and toolbar buttons to implement full-featured text editor that can be run as standalone programand attached as component to other guis also used by pymailgui and pyview to edit mail text and image file notesand by pymailgui and pydemos in pop-up mode to display source and text files new in version ( -updated to run under python ( -added "grepsearch menu option and dialogthreaded external files search -verify app exit on quit if changes in other edit windows in process -supports arbitrary unicode encodings for filesper textconfig py settings -update change and font dialog implementations to allow many to be open -runs self update(before setting text in new editor for loadfirst -various improvements to the run code optionper the next section run code improvements-use base name after chdir to run code filenot possibly relative path -use launch modes that support arguments for run code file mode on windows -run code inherits launchmodes backslash conversion (no longer requirednew in version ( -added simple font components input dialog -use tk undo stack api to add undo/redo text modifications -now verifies on quitopennewrunonly if text modified and unsaved -searches are case-insensitive now by default -configuration module for initial font/color/size/searchcase tbd (and suggested exercises)-could also allow search case choice in gui (not just config file-could use re patterns for searches and greps (see text -could experiment with syntax-directed text colorization (see idleothers-could try to verify app exit for quit(in non-managed windows too-could queue each result as found in grep dialog thread to avoid delay -could use images in toolbar buttons (per examples of this in -could scan line to map tk insert position column to account for tabs on info -could experiment with "greptbd unicode issues (see notes in the code)###############################################################################""version ' import sysos platformargsrun tools from tkinter import base widgetsconstants from tkinter filedialog import opensaveas standard dialogs from tkinter messagebox import showinfoshowerroraskyesno from tkinter simpledialog import askstringaskinteger from tkinter colorchooser import askcolor from pp gui tools guimaker import frame menu/toolbar builders general configurations trypyedita text editor program/object