Okay, I've got a roundabout method going: copying all my text into a gtk.TextBuffer and then using TextBuffer's clipboard-handling facilities (which is supposed to include rich text, isn't it?) to copy to the clipboard, like so:
Code:
citation_buffer = gtk.TextBuffer()
...
clipboard = gtk.clipboard_get("CLIPBOARD")
citation_buffer.select_range(citation_buffer.get_start_iter(), citation_buffer.get_end_iter())
citation_buffer.copy_clipboard(clipboard)
Only problem is, all it will paste is plain text. So, next question: Am I maybe going about this all wrong? What I'd like to do is construct a text string that includes formatting for pasting into an openoffice, abiword, etc. document. And if I'm not going about it all wrong, why isn't my app actually including the formatting information?
Bookmarks