font ('courier' 'normal'familysizestyle style'bold italicinitial color bg 'lightcyanfg 'blackdefault=whiteblack colorname or rgb hexstr 'powder blue''# initial size height width tk default lines tk default characters search case-insensitive caseinsens true default= /true (on# unicode encoding behavior and names for file opens and savesattempts the cases listed below in the order shownuntil the first one that worksset all variables to false/empty/ to use your platform' default (which is 'utf- on windowsor 'asciior 'latin- on others like unix)savesuseknownencoding =no =yes for save only =yes for save and saveasimported from this file alwayssys path if mainelse package relative#opensaskuser true opensencoding ' tries internally known type first ( email charset if truetry user input next (prefill with defaults if nonemptytry this encoding next'latin- ''cp tries sys getdefaultencoding(platform default next uses binary mode bytes and tk policy as the last resort savesuseknownencoding savesaskuser true savesencoding ' if try known encoding from last open or save if truetry user input next (prefill with known? if nonemptytry this encoding next'utf- 'etc tries sys getdefaultencoding(as last resort windows (and otherlaunch files nextexample - gives the pyw launching file used to suppress dos pop up on windows when run in some modes (for instancewhen double-clicked)but still allow for console when the py file is run directly (to see the output of edited code run in nonfile modefor exampleclicking this directly is similar to the behavior when pyedit is run from the pydemos or pygadgets demo launcher bars example - pp \gui\texteditor\texteditornoconsole pyw ""run without dos pop up on windowscould use just pyw for both imports and launchbut py file retained for seeing any printed text ""exec(open('texteditor py'read()as if pasted here (or texteditor main()pyedita text editor program/object