#NEWLINE# def _updateFromPlug( self ) : #NEWLINE# #INDENT# with self . getContext ( ) : #NEWLINE# #INDENT# value = self . getPlug ( ) . getValue ( ) #NEWLINE# #UNINDENT# if ( value != self . getPlug ( ) . defaultValue ( ) ) : #NEWLINE# #INDENT# self . __toggleValue = value #NEWLINE# self . __button . setImage ( ( self . __imagePrefix + 'On.png' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . __button . setImage ( ( self . __imagePrefix + 'Off.png' ) ) #NEWLINE# #UNINDENT# self . setEnabled ( self . getPlug ( ) . settable ( ) )