parameters: (self, tagname, item=None)
docstring: 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
docstring_summary: 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.
docstring_tokens: 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 .
function: 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))
function_tokens: 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 ) )