WYSIWYG text Editor in python?
altis at semi-retired.com
Wed Dec 19 14:22:13 EST 2001
I believe that wxTextCtrl uses RichEdit under win32 when the wxTE_RICH style
flag is used in wxPython or wxTE_RICH | wxTE_MULTILINE. Of course, all of
RichEdit is "hidden" behind the wxTextCtrl API. demo.py included with
wxPython 2.3.1 or higher (the latest is 2.3.2) includes a demo of using
wxTE_RICH to set styled text in the control.
"Neil Hodgson" <nhodgson at bigpond.net.au> wrote in message
news:N1tT7.20847$_z.56740 at news-server.bigpond.net.au...
> > ... need a MS-Word-like text editor
> RichEdit is built into windows and is fairly capable - WordPad is a
> simple use of RichEdit. [This URL will need unwrapping]
> > able to render on screen text in bold, [OK]
> > italics, [OK]
> > underline, [OK]
> > greek symbols [OK] and
> > super/subscripts. [Available in recent versions as CFM_SUBSCRIPT /
> CFM_SUPERSCRIPT but not exposed in WordPad].
> > I work with MS-Windows.
> RichEdit was previously used as the editor for Python source code
> PythonWin until Mark and I replaced it with Scintilla. Scintilla is better
> than RichEdit for source code but worse for documents.
> In a quick search I couldn't find a Python demonstration of RichEdit.
More information about the Python-list