(self)
Update the additional help entries on the Help menu
Update the additional help entries on the Help menu
Update the additional help entries on the Help menu
def reset_help_menu_entries(self):
        "Update the additional help entries on the Help menu"
        help_list = idleConf.GetAllExtraHelpSourcesList()
        helpmenu = self.menudict['help']
        # first delete the extra help entries, if any
        helpmenu_length = helpmenu.index(END)
        if helpmenu_length > self.base_helpmenu_length:
            helpmenu.delete((self.base_helpmenu_length + 1), helpmenu_length)
        # then rebuild them
        if help_list:
            helpmenu.add_separator()
            for entry in help_list:
                cmd = self.__extra_help_callback(entry[1])
                helpmenu.add_command(label=entry[0], command=cmd)
        # and update the menu dictionary
        self.menudict['help'] = helpmenu
def reset_help_menu_entries ( self ) : help_list = idleConf . GetAllExtraHelpSourcesList ( ) helpmenu = self . menudict [ 'help' ] # first delete the extra help entries, if any helpmenu_length = helpmenu . index ( END ) if helpmenu_length > self . base_helpmenu_length : helpmenu . delete ( ( self . base_helpmenu_length + 1 ) , helpmenu_length ) # then rebuild them if help_list : helpmenu . add_separator ( ) for entry in help_list : cmd = self . __extra_help_callback ( entry [ 1 ] ) helpmenu . add_command ( label = entry [ 0 ] , command = cmd ) # and update the menu dictionary self . menudict [ 'help' ] = helpmenu