#NEWLINE# def smoothingChanged( self , state ) : #NEWLINE# #INDENT# sigma = self . overlayItem . sigma #NEWLINE# try : #NEWLINE# #INDENT# sigma = float ( self . sigma . text ( ) ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# self . overlayItem . sigma = s #NEWLINE# if ( state == QtCore . Qt . Checked ) : #NEWLINE# #INDENT# self . overlayItem . smoothing = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . overlayItem . smoothing = False #NEWLINE# #UNINDENT# self . overlayItem . setForegrounds ( self . overlayItem . foregrounds ) #NEWLINE# thresholds = [ ] #NEWLINE# for ( i , s ) in enumerate ( self . sliders ) : #NEWLINE# #INDENT# if ( s . value ( ) > 0 ) : #NEWLINE# #INDENT# thresholds . append ( ( s . value ( ) / 1000.0 ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# thresholds . append ( ( ( - 1 ) / 1000.0 ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . overlayItem . setThresholds ( thresholds ) #NEWLINE# self . volumeEditor . repaint ( )