( self, path, raiseIfMissing=True )
| 100 | ## Removes the named menu item. Raises a KeyError if |
| 101 | # no such item exists and raiseIfMissing is True. |
| 102 | def remove( self, path, raiseIfMissing=True ) : |
| 103 | |
| 104 | index = None |
| 105 | for i in range( 0, len( self.__items ) ) : |
| 106 | if self.__items[i][0]==path : |
| 107 | index = i |
| 108 | break |
| 109 | |
| 110 | if not index is None : |
| 111 | del self.__items[index] |
| 112 | else : |
| 113 | if raiseIfMissing : |
| 114 | raise KeyError( path ) |
| 115 | |
| 116 | ## Removes all items whose paths match the given |
| 117 | # regular expression. |
no test coverage detected