[pygtk] TextView and the mouse
Hans-Joachim Widmaier
hjwidmaier at web.de
Fri Oct 12 20:22:22 WST 2007
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
(ok, key-press- and key-release-events are working, of course).
I'd like to scroll to the bottom and place the cursor at the end of
the buffer before the clipboard gets pasted. By write-protecting
all but the last line I can avoid messing up previous output, but
placing the mouse on the last line to paste is quite awkward.
It's probably just a small thing I've overlooked, and I'd be grateful
if someone pulled off my blinders.
No, vte isn't the answer, as the terminal has run on Windows as
well (and there's no vte for windows, AFAIK).
Any ideas would be appreciated,
Hans-Joachim
_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220
More information about the pygtk
mailing list