parameters: (self)
docstring: Given self.drawConfig!=None, swaps out the item's curren
          configuration  with self.drawConfig.  Used for animations
docstring_summary: Given self.drawConfig!=None, swaps out the item's curren
          configuration  with self.drawConfig.  Used for animations
docstring_tokens: Given self . drawConfig! = None swaps out the item s curren configuration with self . drawConfig . Used for animations
function: def swapDrawConfig(self):
          """Given self.drawConfig!=None, swaps out the item's curren
          configuration  with self.drawConfig.  Used for animations"""
          if self.drawConfig: 
              try:
                  newDrawConfig = config.getConfig(self.item)
                  if len(newDrawConfig) != len(self.drawConfig):
                      warnings.warn("Incorrect length of draw configuration? {} vs {}".format(len(self.drawConfig),len(newDrawConfig)))
                  config.setConfig(self.item,self.drawConfig)
                  self.drawConfig = newDrawConfig
              except Exception as e:
                  warnings.warn("Exception thrown during animation update.  Probably have incorrect length of configuration")
                  import traceback
                  traceback.print_exc()
                  self.animation = None
                  pass
          for n,app in self.subAppearances.items():
              app.swapDrawConfig()
function_tokens: def swapDrawConfig ( self ) : if self . drawConfig : try : newDrawConfig = config . getConfig ( self . item ) if len ( newDrawConfig ) != len ( self . drawConfig ) : warnings . warn ( "Incorrect length of draw configuration? {} vs {}" . format ( len ( self . drawConfig ) , len ( newDrawConfig ) ) ) config . setConfig ( self . item , self . drawConfig ) self . drawConfig = newDrawConfig except Exception as e : warnings . warn ( "Exception thrown during animation update.  Probably have incorrect length of configuration" ) import traceback traceback . print_exc ( ) self . animation = None pass for n , app in self . subAppearances . items ( ) : app . swapDrawConfig ( )