#NEWLINE# def __showSphere__( self , buttonId ) : #NEWLINE# #INDENT# if ( buttonId == 0 ) : #NEWLINE# #INDENT# SlicerUtil . displayForegroundVolume ( None ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( buttonId == ( - 2 ) ) : #NEWLINE# #INDENT# buttonId = self . otherRadiusTextbox . text #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( buttonId % 10 ) == 0 ) : #NEWLINE# #INDENT# buttonId /= 10 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# buttonId /= 10.0 #NEWLINE# #UNINDENT# #UNINDENT# lm = self . logic . getSphereLabelMap ( buttonId ) #NEWLINE# SlicerUtil . displayForegroundVolume ( lm . GetID ( ) , 0.5 )