;ň ŠÄG@c@sˆdkZdkiiZd„ZdZedjoPdkZdkZdk Z e i dei i ei dƒgei dƒndS(NcCsÁti|dƒ}ti|ddtiƒ}titi ƒ}|i |dti ti Bdƒ|i|ƒ|itƒ|idddddddd d d d d dddddgƒ|SdS(Ni˙˙˙˙sstyleiss/This is a simple text editor, the class name iss)Editor. Type a few lines and try it out.sIIt uses Windows-style key commands that can be overridden by subclassing.s.Mouse select works. Here are the key commands:s(Cursor movement: Arrow keys or mousesBeginning of line: HomesEnd of line: Ends!Beginning of buffer: Control-Homes End of the buffer: Control-Ends<Select text: Hold down Shift while moving the cursors.Copy: Control-Insert, Control-Cs.Cut: Shift-Delete, Control-Xs.Paste: Shift-Insert, Control-V(swxsPanelsnbswinseditorsEditors SUNKEN_BORDERsedsBoxSizersVERTICALsboxsAddsALLsGROWsSetSizers SetAutoLayoutsTruesSetText(sframesnbslogsboxsedswin((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Editor.pysrunTests   @s( The Editor class implements a simple text editor using wxPython. You can create a custom editor by subclassing Editor. Even though much of the editor is implemented in Python, it runs surprisingly smoothly on normal hardware with small files. How to use it ------------- The demo code (demo/Editor.py) shows how to use Editor as a simple text box. Use the SetText() and GetText() methods to set or get text from the component; these both use a list of strings. The samples/FrogEdit directory has an example of a simple text editor application that uses the Editor component. Subclassing ----------- To add or change functionality, you can subclass this component. One example of this might be to change the key Alt key commands. In that case you would (for example) override the SetAltFuncs() method. s__main__sii(swxs wx.lib.editorslibseditorsrunTestsoverviews__name__ssyssossrunsmainspathsbasenamesargv(ssyssrunsoverviewsrunTestseditorsosswx((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Editor.pys?s