def mousePressEvent(self, e):
super(PyInteractiveConsole, self).mousePressEvent(e)<EOL>cursor = self.cursorForPosition(e.pos())<EOL>p = cursor.positionInBlock()<EOL>usd = cursor.block().userData()<EOL>if usd and usd.start_pos_in_block <= p <= usd.end_pos_in_block:<EOL><INDENT>if e.button() == QtCore.Qt.LeftButton:<EOL><INDENT>self.open_file_requested.emit(usd.filename, usd.line)<EOL><DEDENT><DEDENT>
Emits open_file_requested if the press event occured  over
a file location string.