SideBar.py 文件源码

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

项目:.sublime 作者: cxdongjack 项目源码 文件源码
def confirm(self, paths, in_parent, data, key):
        import functools
        window = sublime.active_window()
        window.show_input_panel("BUG!", '', '', None, None)
        window.run_command('hide_panel');

        yes = []
        yes.append('Yes, Replace the following items:');
        for item in data:
            yes.append(SideBarItem(item, os.path.isdir(item)).pathWithoutProject())

        no = []
        no.append('No');
        no.append('Continue without replacing');

        while len(no) != len(yes):
            no.append('ST3 BUG');

        window.show_quick_panel([yes, no], functools.partial(self.on_done, paths, in_parent, key))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号