#NEWLINE# def onControlValueChanged( self , sender , old , new ) : #NEWLINE# #INDENT# if ( new == self . value ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# self . value = new #NEWLINE# if ( new == 0 ) : #NEWLINE# #INDENT# self . __label . setText ( 'OFF' ) #NEWLINE# self . timer . cancel ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . __label . setText ( ( str ( new ) + ' sec' ) ) #NEWLINE# self . onTimer ( self . timer )