spellcheck.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:bubblesub 作者: rr- 项目源码 文件源码
def run(self):
        spell_check_lang = self.api.opt.general['spell_check']
        if not spell_check_lang:
            bubblesub.ui.util.error('Spell check was disabled in config.')
            return

        try:
            dictionary = enchant.Dict(spell_check_lang)
        except enchant.errors.DictNotFoundError:
            bubblesub.ui.util.error(
                f'Spell check language {spell_check_lang} was not found.')
            return

        async def run(api, main_window):
            SpellCheckDialog(api, main_window, dictionary)

        await self.api.gui.exec(run)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号