def deleteCategory(self,name):
if name not in self.categories:<EOL><INDENT>raise KeyError("<STR_LIT>"%name)<EOL><DEDENT>del self.categories[name]<EOL>self.redraw()<EOL>
Deletes the category with the given name.

If the category does not exist, a :py:exc:`KeyError` will be thrown.