[pygtk] Custom gtk.Clipboard function for TextView?

Smartboy smartboyathome at gmail.com
Sun May 30 07:39:40 WST 2010


So I am trying to do some custom conversions of some pango formatting
in my application when I copy text from it to the clipboard, and
created a signal which is called when something is copied from it. It
seems that it doesn't do what I want, however, and the default copy
function stays in place (the text turns out plain when I paste it in
another non-formatted textbox). Would there be any way to set the
clipboard and then keep the text from being copied as per the default
and instead using the converted text which I already have?

The snippet of code pertaining to what I want to do is attached, note
that self.ipb is the buffer for my textView.

Thanks,
Smartboy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pySnippet.py
Type: text/x-python
Size: 385 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20100529/efcaf633/attachment.py 


More information about the pygtk mailing list