(self, tagname, item=None)
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
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.
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 .
def tag_has(self, tagname, item=None):
        """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"""
        if item is None:
            return self.tk.splitlist(
                self.tk.call(self._w, "tag", "has", tagname))
        else:
            return self.tk.getboolean(
                self.tk.call(self._w, "tag", "has", tagname, item))
def tag_has ( self , tagname , item = None ) : if item is None : return self . tk . splitlist ( self . tk . call ( self . _w , "tag" , "has" , tagname ) ) else : return self . tk . getboolean ( self . tk . call ( self . _w , "tag" , "has" , tagname , item ) )