( self, path, item, afterPath )
| 88 | |
| 89 | ## Insert a menu item after the specified menu item. |
| 90 | def insertAfter( self, path, item, afterPath ) : |
| 91 | |
| 92 | if isinstance( item, dict ) : |
| 93 | item = MenuItemDefinition( item ) |
| 94 | |
| 95 | self.remove( path, False ) |
| 96 | |
| 97 | i = self.__pathIndex( afterPath ) |
| 98 | self.__items.insert( i+1, ( path, item ) ) |
| 99 | |
| 100 | ## Removes the named menu item. Raises a KeyError if |
| 101 | # no such item exists and raiseIfMissing is True. |
no test coverage detected