status or RichTextCtrl?

Has anyone had success with using the RichTextCtrl to create a text input box that allows user to style their text and save it as rich text or some format such that it can be reloaded with the styles (bold, italic, bullets, colors, etc) intact? I’ve played with the demo but the demo doesn’t save.

I also want to be able to have proper margins, tabs, and so forth, essentially a halfway proper word processor. So does anyone know of a wxPython app that includes this kind of basic word processing (not a text editor for the programmer–a word processor for the end user) capability? I have yet to find anything, and I don’t understand why that is. I would think it would be valuable. Any ideas?

Thanks,
CM

I haven't used it, but RichTextCtrl has a SaveFile method that takes a
variety of format parameters.

···

On 1/11/07, C M <cmpython@gmail.com> wrote:

Has anyone had success with using the RichTextCtrl to create a text input
box that allows user to style their text and save it as rich text or some
format such that it can be reloaded with the styles (bold, italic, bullets,
colors, etc) intact? I've played with the demo but the demo doesn't save.

I also want to be able to have proper margins, tabs, and so forth,
essentially a halfway proper word processor. So does anyone know of a
wxPython app that includes this kind of basic word processing (not a text
editor for the programmer--a word processor for the end user) capability? I
have yet to find anything, and I don't understand why that is. I would
think it would be valuable. Any ideas?

Thanks,
CM

The RichTextCtrl hasn't been around long, and I think I read something on
this list a month or two ago saying they didn't have the RTF save working
yet. But I could be mis-remembering, or they could've fixed it in the
interim, so it's worth looking into the control's documentation further.

FWIW, a couple of years ago, we wrote an editor based on the StyledTextCtrl
for Transana that can save character formatting in a version of the STC
internal format (fast) or as RTF (semi-portable). It saves a full range of
character formatting, though there is an upper limit (about 100, imposed by
STC) on the number of different format style combinations that can be
represented in a single document. It doesn't handle any paragraph or page
formatting, as we don't need that functionality, though it wouldn't be that
hard to add. You are welcome to look at the code if you think it would be
helpful. http://www.transana.org, and you can find a link to our
SourceForge CVS repository in the Development section of the web site.
Start with the control itself in RichTextEditCtrl.py, then look at
RTFParser.py, RTFDoc.py, and TextDoc.py. You can also see the
implementation of the control in TranscriptionUI.py, TranscriptEditor.py,
and TranscriptToolbar.py.

David Woods, Ph.D.
Lead Transana Developer
Wisconsin Center for Education Research
University of Wisconsin, Madison
http://www.transana.org

···

On 1/11/07, C M <cmpython@gmail.com> wrote:
> Has anyone had success with using the RichTextCtrl to create a text
> input box that allows user to style their text and save it as rich
> text or some format such that it can be reloaded with the styles
> (bold, italic, bullets, colors, etc) intact? I've played with the
> demo but the demo doesn't save.
>
> I also want to be able to have proper margins, tabs, and so forth,
> essentially a halfway proper word processor. So does
anyone know of a
> wxPython app that includes this kind of basic word
processing (not a
> text editor for the programmer--a word processor for the end user)
> capability? I have yet to find anything, and I don't
understand why
> that is. I would think it would be valuable. Any ideas?
>
> Thanks,
> CM
>

I haven't used it, but RichTextCtrl has a SaveFile method
that takes a variety of format parameters.

Thank you, David and Chris. I will try to look at what you’ve done in Transana.

···

On 1/12/07, David Woods < dwoods@wcer.wisc.edu> wrote:

On 1/11/07, C M cmpython@gmail.com wrote:

Has anyone had success with using the RichTextCtrl to create a text

input box that allows user to style their text and save it as rich

text or some format such that it can be reloaded with the styles
(bold, italic, bullets, colors, etc) intact? I’ve played with the
demo but the demo doesn’t save.

I also want to be able to have proper margins, tabs, and so forth,
essentially a halfway proper word processor. So does
anyone know of a
wxPython app that includes this kind of basic word

processing (not a

text editor for the programmer–a word processor for the end user)
capability? I have yet to find anything, and I don’t
understand why
that is. I would think it would be valuable. Any ideas?

Thanks,
CM

I haven’t used it, but RichTextCtrl has a SaveFile method
that takes a variety of format parameters.

The RichTextCtrl hasn’t been around long, and I think I read something on

this list a month or two ago saying they didn’t have the RTF save working
yet. But I could be mis-remembering, or they could’ve fixed it in the
interim, so it’s worth looking into the control’s documentation further.

FWIW, a couple of years ago, we wrote an editor based on the StyledTextCtrl
for Transana that can save character formatting in a version of the STC
internal format (fast) or as RTF (semi-portable). It saves a full range of

character formatting, though there is an upper limit (about 100, imposed by
STC) on the number of different format style combinations that can be
represented in a single document. It doesn’t handle any paragraph or page

formatting, as we don’t need that functionality, though it wouldn’t be that
hard to add. You are welcome to look at the code if you think it would be
helpful.
http://www.transana.org
, and you can find a link to our
SourceForge CVS repository in the Development section of the web site.
Start with the control itself in RichTextEditCtrl.py, then look at

RTFParser.py, RTFDoc.py, and TextDoc.py
. You can also see the
implementation of the control in TranscriptionUI.py, TranscriptEditor.py,
and TranscriptToolbar.py.

David Woods, Ph.D.
Lead Transana Developer
Wisconsin Center for Education Research

University of Wisconsin, Madison
http://www.transana.org


To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org