> self.ev.connect("button-press-event", ...
what happens if you connect to the textview rather than the eventbox (self.ev)? eventboxes are only needed for those widgets (like images, iirc) that don't receive their own events. a textview isn't one of those, i think.