parameters: (self, frame, menuBar=None, toolBar=None, statusBar=None, document=None)
docstring: Installs a "Tools" menu with an "Options" menu item.
docstring_summary: Installs a "Tools" menu with an "Options" menu item.
docstring_tokens: Installs a Tools menu with an Options menu item .
function: def InstallControls(self, frame, menuBar=None, toolBar=None, statusBar=None, document=None):
          """
          Installs a "Tools" menu with an "Options" menu item.
          """
          toolsMenuIndex = menuBar.FindMenu(_("&Tools"))
          if toolsMenuIndex > -1:
              toolsMenu = menuBar.GetMenu(toolsMenuIndex)
          else:
              toolsMenu = wx.Menu()
          if toolsMenuIndex == -1:
              formatMenuIndex = menuBar.FindMenu(_("&Format"))
              menuBar.Insert(formatMenuIndex + 1, toolsMenu, _("&Tools"))
          if toolsMenu:
              if toolsMenu.GetMenuItemCount():
                  toolsMenu.AppendSeparator()
              toolsMenu.Append(self._toolOptionsID, _("&Options..."), _("Sets options"))
              wx.EVT_MENU(frame, self._toolOptionsID, frame.ProcessEvent)
function_tokens: def InstallControls ( self , frame , menuBar = None , toolBar = None , statusBar = None , document = None ) : toolsMenuIndex = menuBar . FindMenu ( _ ( "&Tools" ) ) if toolsMenuIndex > - 1 : toolsMenu = menuBar . GetMenu ( toolsMenuIndex ) else : toolsMenu = wx . Menu ( ) if toolsMenuIndex == - 1 : formatMenuIndex = menuBar . FindMenu ( _ ( "&Format" ) ) menuBar . Insert ( formatMenuIndex + 1 , toolsMenu , _ ( "&Tools" ) ) if toolsMenu : if toolsMenu . GetMenuItemCount ( ) : toolsMenu . AppendSeparator ( ) toolsMenu . Append ( self . _toolOptionsID , _ ( "&Options..." ) , _ ( "Sets options" ) ) wx . EVT_MENU ( frame , self . _toolOptionsID , frame . ProcessEvent )