def mouseMoveEvent(self, e):
super(PyInteractiveConsole, self).mouseMoveEvent(e)<EOL>cursor = self.cursorForPosition(e.pos())<EOL>assert isinstance(cursor, QtGui.QTextCursor)<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 QtWidgets.QApplication.overrideCursor() is None:<EOL><INDENT>QtWidgets.QApplication.setOverrideCursor(<EOL>QtGui.QCursor(QtCore.Qt.PointingHandCursor))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if QtWidgets.QApplication.overrideCursor() is not None:<EOL><INDENT>QtWidgets.QApplication.restoreOverrideCursor()<EOL><DEDENT><DEDENT>
Extends mouseMoveEvent to display a pointing hand cursor when the
mouse cursor is over a file location