'Disable items
@param tag: disable all items in the subtree with this tag
(no tag disables only this item)'

def disable(self, tag=None):

    if (tag is not None):
        items = self.findall(tag)
        for item in items:
            item.disable()
    else:
        self.enabled = False
    return
