parameters: (self, idx, window, sashPos=-1)
docstring: Insert a new window into the splitter at the position given in `idx`.
  
          :param `idx`: the index at which the window will be inserted;
          :param `window`: an instance of :class:`Window`;
          :param `sashPos`: the sash position after the window insertion.
docstring_summary: Insert a new window into the splitter at the position given in `idx`.
docstring_tokens: Insert a new window into the splitter at the position given in idx .
function: def InsertWindow(self, idx, window, sashPos=-1):
          """
          Insert a new window into the splitter at the position given in `idx`.
  
          :param `idx`: the index at which the window will be inserted;
          :param `window`: an instance of :class:`Window`;
          :param `sashPos`: the sash position after the window insertion.
          """
          
          assert window not in self._windows, "A window can only be in the splitter once!"
          
          self._windows.insert(idx, window)
          
          self._SizeWindows()
function_tokens: def InsertWindow ( self , idx , window , sashPos = - 1 ) : assert window not in self . _windows , "A window can only be in the splitter once!" self . _windows . insert ( idx , window ) self . _SizeWindows ( )