#NEWLINE# def singleShot( self , timeoutInSeconds ) : #NEWLINE# #INDENT# if ( not self . singleShotTimer . isActive ( ) ) : #NEWLINE# #INDENT# self . singleShotTimer . connect ( 'timeout()' , timeoutInSeconds . _singleShotTimerEvent ) #NEWLINE# #UNINDENT# self . singleShotTimer . start ( int ( ( timeoutInSeconds * 1000 ) ) )