def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def delete_comment(self):
        "Delete the selected comment"

        if self.get_selected_item()['type'] == 'Comment':
            self.delete_item()
        else:
            self.term.flash()