( self, definition )
| 133 | ## Appends another MenuDefinition or dict to the end |
| 134 | # of the definition. Duplicate entries will be overwritten. |
| 135 | def update( self, definition ) : |
| 136 | for path, item in definition.items(): |
| 137 | self.remove( path, False ) |
| 138 | self.__items.append( ( path, item ) ) |
| 139 | |
| 140 | ## Removes all menu items from the definition. |
| 141 | def clear( self ) : |