parameters: (self, pt)
return_statement: return -1, NoWhere
docstring: HitTest method for :class:`FlatMenuBar`.
  
          :param `pt`: an instance of :class:`Point`, specifying the hit test position.
  
          :return: A tuple representing one of the following combinations:
  
           ========================= ==================================================
           Return Tuple              Description
           ========================= ==================================================
           (-1, 0)                   The :meth:`~FlatMenuBar.HitTest` method didn't find any item with the specified input point `pt` (``NoWhere`` = 0)
           (`integer`, 1)            A menu item has been hit, its position specified by the tuple item `integer` (``MenuItem`` = 1)
           (`integer`, 2)            A toolbar item has ben hit, its position specified by the tuple item `integer` (``ToolbarItem`` = 2)
           (-1, 3)                   The drop-down area button has been hit (``DropDownArrowButton`` = 3)
           ========================= ==================================================
docstring_summary: HitTest method for :class:`FlatMenuBar`.
docstring_tokens: HitTest method for : class : FlatMenuBar .
function: def HitTest(self, pt):
          """
          HitTest method for :class:`FlatMenuBar`.
  
          :param `pt`: an instance of :class:`Point`, specifying the hit test position.
  
          :return: A tuple representing one of the following combinations:
  
           ========================= ==================================================
           Return Tuple              Description
           ========================= ==================================================
           (-1, 0)                   The :meth:`~FlatMenuBar.HitTest` method didn't find any item with the specified input point `pt` (``NoWhere`` = 0)
           (`integer`, 1)            A menu item has been hit, its position specified by the tuple item `integer` (``MenuItem`` = 1)
           (`integer`, 2)            A toolbar item has ben hit, its position specified by the tuple item `integer` (``ToolbarItem`` = 2)
           (-1, 3)                   The drop-down area button has been hit (``DropDownArrowButton`` = 3)
           ========================= ==================================================
          
          """
  
          if self._dropDownButtonArea.Contains(pt):
              return -1, DropDownArrowButton
  
          for ii, item in enumerate(self._items):
              if item.GetRect().Contains(pt):
                  return ii, MenuItem
  
          # check for tool bar items
          if self._showToolbar:
              for ii, but in enumerate(self._tbButtons):
                  if but._rect.Contains(pt):
                      # locate the corresponded menu item
                      enabled  = but._tbItem.IsEnabled()
                      separator = but._tbItem.IsSeparator()
                      visible  = but._visible
                      if enabled and not separator and visible:
                          self._showTooltip = ii
                          return ii, ToolbarItem
  
          self._showTooltip = -1
          return -1, NoWhere
function_tokens: def HitTest ( self , pt ) : if self . _dropDownButtonArea . Contains ( pt ) : return - 1 , DropDownArrowButton for ii , item in enumerate ( self . _items ) : if item . GetRect ( ) . Contains ( pt ) : return ii , MenuItem # check for tool bar items if self . _showToolbar : for ii , but in enumerate ( self . _tbButtons ) : if but . _rect . Contains ( pt ) : # locate the corresponded menu item enabled = but . _tbItem . IsEnabled ( ) separator = but . _tbItem . IsSeparator ( ) visible = but . _visible if enabled and not separator and visible : self . _showTooltip = ii return ii , ToolbarItem self . _showTooltip = - 1 return - 1 , NoWhere