[pygtk] TextView and the mouse

Pádraig Brady P at draigBrady.com
Fri Oct 12 20:32:19 WST 2007


Hans-Joachim Widmaier wrote:
> Hello again.
> 
> I had to implement a slightly unusual terminal. The bulk of it is
> a TextBuffer/TextView combo. I'd like to match the behaviour of
> a xterm, particularly the scrolling to the end on input - whether
> the input comes from the "other end" or the user. This works
> well for the "other end" and the keyboard.
> But not if text is pasted with the mouse. I just can't find a way
> to catch this event. I've tried almost every signal on both the
> TextView and the TextBuffer widget, but none was ever called

Did you try and handle the following events?

paste-clipboard
button-press-event

Pádraig.


More information about the pygtk mailing list