parameters: (self, before, item, proportion=0, flag=0, border=0, userData=None, realIndex=None)
docstring: Inserts a child item into the sizer.
  
          :see: :meth:`BoxSizer.Add` method for an explanation of the input parameters.
docstring_summary: Inserts a child item into the sizer.
docstring_tokens: Inserts a child item into the sizer .
function: def Insert(self, before, item, proportion=0, flag=0, border=0, userData=None, realIndex=None):
          """
          Inserts a child item into the sizer.
  
          :see: :meth:`BoxSizer.Add` method for an explanation of the input parameters.
          """
  
          # check to see if it's a pseudo object or sizer
          if isinstance(item, Sizer):
              szitem = wx.BoxSizer.Insert(self, before, item, proportion, flag, border, item)
              self.children.append(szitem)
          elif isinstance(item, Control): # Control should be what ever class your controls come from
              sz = item.GetBestSize()
              # add a spacer to track this object
              szitem = wx.BoxSizer.Insert(self, before, sz, proportion, flag, border, item)
              if realIndex is not None:
                  self.children.insert(realIndex,szitem)
              else:
                  self.children.insert(before,szitem)
                  
          else:
              wx.BoxSizer.Insert(self, before, item, proportion, flag, border, userData)
function_tokens: def Insert ( self , before , item , proportion = 0 , flag = 0 , border = 0 , userData = None , realIndex = None ) : # check to see if it's a pseudo object or sizer if isinstance ( item , Sizer ) : szitem = wx . BoxSizer . Insert ( self , before , item , proportion , flag , border , item ) self . children . append ( szitem ) elif isinstance ( item , Control ) : # Control should be what ever class your controls come from sz = item . GetBestSize ( ) # add a spacer to track this object szitem = wx . BoxSizer . Insert ( self , before , sz , proportion , flag , border , item ) if realIndex is not None : self . children . insert ( realIndex , szitem ) else : self . children . insert ( before , szitem ) else : wx . BoxSizer . Insert ( self , before , item , proportion , flag , border , userData )