I'd like to add basic text editing functionality to my pygtk app and
had a couple of questions.

First, is there an easy way to implement copy/paste buttons so that
they point to whatever C-c/C-v would do in pygtk anyway? Most widgets
to the "right thing" with C-c/C-v by default, but I'd like to give
users a button on the toolbar as well for those who don't immediately
think of trying out the shortcut, and would like to implement it as
simply as possible.

Second, I understand that according to the following bug, inserting
pango markup (<u>,<b> etc.) into text-buffers is not easily supported
in gtk (though perhaps coming soon)...

http://bugzilla.gnome.org/show_bug.cgi?id=59390

However, I'd like to do this. Actually, I'd like to allow my users to
do basic formatting with "italic"/"bold"/"underline" buttons. I'd then
like to preserve that formatting as pango to pass to e.g. gnomeprint
to be layed out with pangolayout.

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...

Tom
_______________________________________________
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