parameters: (self, x, y)
return_statement: return None
docstring: TabHitTest() tests if a tab was hit, passing the window pointer
          back if that condition was fulfilled.
  
          :param integer `x`: the mouse `x` position;
          :param integer `y`: the mouse `y` position.
docstring_summary: TabHitTest() tests if a tab was hit, passing the window pointer
          back if that condition was fulfilled.
docstring_tokens: TabHitTest () tests if a tab was hit passing the window pointer back if that condition was fulfilled .
function: def TabHitTest(self, x, y):
          """
          TabHitTest() tests if a tab was hit, passing the window pointer
          back if that condition was fulfilled.
  
          :param integer `x`: the mouse `x` position;
          :param integer `y`: the mouse `y` position.
          """
  
          if not self._rect.Contains((x,y)):
              return None
  
          btn = self.ButtonHitTest(x, y)
          if btn:
              if btn in self._buttons:
                  return None
  
          for i in xrange(self._tab_offset, len(self._pages)):
              page = self._pages[i]
              if page.rect.Contains((x,y)):
                  return page.window
  
          return None
function_tokens: def TabHitTest ( self , x , y ) : if not self . _rect . Contains ( ( x , y ) ) : return None btn = self . ButtonHitTest ( x , y ) if btn : if btn in self . _buttons : return None for i in xrange ( self . _tab_offset , len ( self . _pages ) ) : page = self . _pages [ i ] if page . rect . Contains ( ( x , y ) ) : return page . window return None