ui_bridge.py 文件源码

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

项目:pytknvim 作者: timeyyy 项目源码 文件源码
def connect(self, nvim, ui, profile=None, notify=False):
        """Connect nvim and the ui.

        This will start loops for handling the UI and nvim events while
        also synchronizing both.
        """
        self._notify = notify
        self._error = None
        self._nvim = nvim
        self._ui = ui
        self._profile = profile
        self._sem = Semaphore(0)
        t = Thread(target=self._nvim_event_loop)
        t.daemon = True
        t.start()
        self._ui_event_loop()
        if self._error:
            print(self._error)
        if self._profile:
            print(self._profile)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号