parameters: (self, render)
return_statement: return lastRenderer
docstring: Adds a new theme to the stock.
  
          :param `render`: a rendering theme class, which must be derived from
           :class:`RendererBase`.
  
          :return: An integer representing the size of the renderers dictionary.
docstring_summary: Adds a new theme to the stock.
docstring_tokens: Adds a new theme to the stock .
function: def AddMenuTheme(self, render):
          """
          Adds a new theme to the stock.
  
          :param `render`: a rendering theme class, which must be derived from
           :class:`RendererBase`.
  
          :return: An integer representing the size of the renderers dictionary.
          """
  
          # Add new theme
          lastRenderer = len(self._renderers)
          self._renderers[lastRenderer] = render
          
          return lastRenderer
function_tokens: def AddMenuTheme ( self , render ) : # Add new theme lastRenderer = len ( self . _renderers ) self . _renderers [ lastRenderer ] = render return lastRenderer