parameters: (self, olditem, item, recursive=False)
docstring: Detaches the given ``olditem`` from the sizer and replaces it with
          ``item`` which can be a window, sizer, or `wx.SizerItem`.  The
          detached child is destroyed only if it is not a window, (because
          windows are owned by their parent, not the sizer.)  The
          ``recursive`` parameter can be used to search for the given
          element recursivly in subsizers.
  
          This method does not cause any layout or resizing to take place,
          call `Layout` to do so.
  
          Returns ``True`` if the child item was found and removed.
docstring_summary: Detaches the given ``olditem`` from the sizer and replaces it with
          ``item`` which can be a window, sizer, or `wx.SizerItem`.  The
          detached child is destroyed only if it is not a window, (because
          windows are owned by their parent, not the sizer.)  The
          ``recursive`` parameter can be used to search for the given
          element recursivly in subsizers.
docstring_tokens: Detaches the given olditem from the sizer and replaces it with item which can be a window sizer or wx . SizerItem . The detached child is destroyed only if it is not a window ( because windows are owned by their parent not the sizer . ) The recursive parameter can be used to search for the given element recursivly in subsizers .
function: def Replace(self, olditem, item, recursive=False):
          """
          Detaches the given ``olditem`` from the sizer and replaces it with
          ``item`` which can be a window, sizer, or `wx.SizerItem`.  The
          detached child is destroyed only if it is not a window, (because
          windows are owned by their parent, not the sizer.)  The
          ``recursive`` parameter can be used to search for the given
          element recursivly in subsizers.
  
          This method does not cause any layout or resizing to take place,
          call `Layout` to do so.
  
          Returns ``True`` if the child item was found and removed.
          """
          if isinstance(olditem, wx.Window):
              return self._ReplaceWin(olditem, item, recursive)
          elif isinstance(olditem, wx.Sizer):
              return self._ReplaceSizer(olditem, item, recursive)
          elif isinstance(olditem, int):
              return self._ReplaceItem(olditem, item)
          else:
              raise TypeError("Expected Window, Sizer, or integer for first parameter.")
function_tokens: def Replace ( self , olditem , item , recursive = False ) : if isinstance ( olditem , wx . Window ) : return self . _ReplaceWin ( olditem , item , recursive ) elif isinstance ( olditem , wx . Sizer ) : return self . _ReplaceSizer ( olditem , item , recursive ) elif isinstance ( olditem , int ) : return self . _ReplaceItem ( olditem , item ) else : raise TypeError ( "Expected Window, Sizer, or integer for first parameter." )