'If item is specified, returns 1 or 0 depending on whether the
specified item has the given tagname. Otherwise, returns a list of
all items which have the specified tag.
* Availability: Tk 8.6'

def tag_has(self, tagname, item=None):

    return self.tk.call(self._w, 'tag', 'has', tagname, item)
