def disable_busy_cursor ( ) : while QgsApplication . instance ( ) . overrideCursor ( ) is not None and QgsApplication . instance ( ) . overrideCursor ( ) . shape ( ) == QtCore . Qt . WaitCursor : QgsApplication . instance ( ) . restoreOverrideCursor ( )
how to make the cursor disappear on python
Disable the hourglass cursor and listen for layer changes .
def disable_busy_cursor():
    """Disable the hourglass cursor and listen for layer changes."""
    while QgsApplication.instance().overrideCursor() is not None and \
            QgsApplication.instance().overrideCursor().shape() == \
            QtCore.Qt.WaitCursor:
        QgsApplication.instance().restoreOverrideCursor()