code: def toggleCollapseAfter( self ):
          
          if ( self.isCollapsed() ):
              self.uncollapse()
          else:
              self.collapse( XSplitterHandle.CollapseDirection.After )
docs: Collapses the splitter after this handle.