コード例 #1
0
ファイル: __init__.py プロジェクト: FlickDUB/pyenchant
    def dict_exists(self, tag):
        """Check availability of a dictionary.

        This method checks whether there is a dictionary available for
        the language specified by 'tag'.  It returns True if a dictionary
        is available, and False otherwise.
        """
        self._check_this()
        val = _e.broker_dict_exists(self._this, tag.encode())
        return bool(val)
コード例 #2
0
ファイル: __init__.py プロジェクト: DKaman/pyenchant
 def dict_exists(self,tag):
     """Check availability of a dictionary.
     
     This method checks whether there is a dictionary available for
     the language specified by 'tag'.  It returns True if a dictionary
     is available, and False otherwise.
     """
     self._check_this()
     tag = EnchantStr(tag)
     val = _e.broker_dict_exists(self._this,tag.encode())
     return bool(val)