On Mon, 2005-02-14 at 21:21 -0500, Thomas Mills Hinkle wrote:
>I'd like to add basic text editing functionality to my pygtk app and
>had a couple of questions.

>Has anyone already done something like this in pygtk? I'm guessing
>that if I sit down and implement this, I'll be needless duplicating
>code that's already written somewhere -- can anyone confirm my
>suspicion by pointing me to an example? Thanks in advance...

You could just use the GtkHTML widget through the bonobo interface.
It's what Evolution uses in it's composer and I used it just to check it
out a while back.  This might be a little overboard, but it does give
many benefits of not having to write your own undo/redo framework as
well.  Basically the widget works to read in a file stream and write one
out.

Here's the (probably out of date) source:
http://www.gnome.org/~clarkbw/monkey-journal/src/

~ Bryan

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to