interactive_shell.py 文件源码

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

项目:bptc_wallet 作者: ceddie 项目源码 文件源码
def _create_keybindings_registry(self):
        registry = load_key_bindings_for_prompt()
        for keystroke, callback in self.keybindings:
            @registry.add_binding(keystroke)
            def _(event):
                """
                We use ``run_in_terminal``, because that ensures that the prompt is
                hidden right before something gets printed and it's drawn again
                after it. (Otherwise this would destroy the output.)
                """
                event.cli.run_in_terminal(lambda: callback(None))
        return registry
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号