[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] textedit example
From:       "Hans-Peter Jansen" <hpj () urpla ! net>
Date:       2010-11-29 11:47:37
Message-ID: 201011291247.37470.hpj () urpla ! net
[Download RAW message or body]

Ping

On Thursday 04 November 2010, 23:42:33 Hans-Peter Jansen wrote:
> Hi Phil et al.,
>
> since I was "in the mood" last night, here's the textedit example for
> the collection.
>
> This is a simple richtext editor in about 26k code. I'm inclined to
> say, it's fullblown, but they did the easy parts only: no page
> header/footer setup, no interface for embedding images, nor one to
> create/edit tables.
>
> On the bright side, it has
>  * the usual font chooser, sizes and attributes
>  * alignment
>  * a bunch of different list styles,
>  * a print preview
> in only about 600 LOC!
>
> One notable inanity: while it saves documents in odt format by
> _default_, it cannot read this format back in! That's because an odf
> _reader_ is simply missing in Qt. Hence, you can save as odt, open it
> in oowriter (where the demo doc looks pretty nice) and save that in
> html format again. That one should be readable for textedit again
> (didn't test that, though).

Phil,

wouldn't that fit perfectly in examples/richtext? (it derived from 
demos/textedit)

Pete
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic