[pygtk] TextView and the mouse

Hans-Joachim Widmaier hjwidmaier at web.de
Mon Oct 15 16:41:02 WST 2007


[Sorry for killing the threading, but I have to use the Web interface and there's
nothing to reply to any more]

I just tried again ...

Pádraig Brady wrote:

> Did you try and handle the following events?
> 
> paste-clipboard

The callback is called when the clipboard is pasted via the context menu, not when
its done with the middle mouse button. Basically useless under X. (Even if you use
the context menu, this doesn't help, as you can't paste in the editable=False
protected regions.)

> button-press-event

This one gets called on every mouse click. So I could make use of it. But this would
involve second-guessing, or , if you prefer, assuming that button 2 always means
"paste clipboard".  I'd hate doing this. I'd rather leave it as it is, then.

Seems there's no easy answer. My users and me will have to make do.

Thanks for your time.
Hans-Joachim


_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066



More information about the pygtk mailing list