#NEWLINE# def fadeTicker( self , keep_t ) : #NEWLINE# #INDENT# self . setWindowOpacity ( 0 ) #NEWLINE# t = 0 #NEWLINE# while ( t <= 50 ) : #NEWLINE# #INDENT# newOpacity = ( self . windowOpacity ( ) + 0.02 ) #NEWLINE# if ( newOpacity > 1 ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# self . setWindowOpacity ( newOpacity ) #NEWLINE# self . show ( ) #NEWLINE# t -= 1 #NEWLINE# time . sleep ( 0.04 ) #NEWLINE# #UNINDENT# self . show ( ) #NEWLINE# time . sleep ( keep_t ) #NEWLINE# t = 0 #NEWLINE# while ( t <= 50 ) : #NEWLINE# #INDENT# newOpacity = ( self . windowOpacity ( ) - 0.02 ) #NEWLINE# if ( newOpacity < 0 ) : #NEWLINE# #INDENT# self . close ( ) #NEWLINE# break #NEWLINE# #UNINDENT# self . setWindowOpacity ( newOpacity ) #NEWLINE# self . show ( ) #NEWLINE# t += 1 #NEWLINE# time . sleep ( 0.04 )