code: def toggleCollapseBefore( self ):
          
          if ( self.isCollapsed() ):
              self.uncollapse()
          else:
              self.collapse( XSplitterHandle.CollapseDirection.Before )
docs: Collapses the splitter before this handle.