<s> from PyQt4 . QtGui import QApplication , QCursor <EOL> from PyQt4 . QtCore import Qt <EOL> def waiting_effects ( function ) : <EOL> def new_function ( self ) : <EOL> QApplication . setOverrideCursor ( QCursor ( Qt . WaitCursor ) ) <EOL> result = function ( self ) <EOL> QApplication . restoreOverrideCursor ( ) <EOL> return result <EOL> return new_function </s>
