

def tag_has(self, tagname, item=None):
    'If item is specified, returns 1 or 0 depending on whether the\n        specified item has the given tagname. Otherwise, returns a list of\n        all items which have the specified tag.\n\n        * Availability: Tk 8.6'
    if (item is None):
        return self.tk.splitlist(self.tk.call(self._w, 'tag', 'has', tagname))
    else:
        return self.tk.getboolean(self.tk.call(item._w, 'tag', 'has', tagname, item))

dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py Treeview.tag_has/VarMisuse@70/163 `self`->`item`