[pygtk] Custom gtk.Clipboard function for TextView?

Smartboy smartboyathome at gmail.com
Sun May 30 21:26:20 WST 2010


Disreguard this, I decided to use a custom key combination instead,
and now everything is working as I want it to. :)

Smartboy

On Sat, May 29, 2010 at 4:39 PM, Smartboy <smartboyathome at gmail.com> wrote:
> 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
>


More information about the pygtk mailing list